Inherits Question...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anthony Nystrom

    Inherits Question...

    I am inheriting the System.Timers.T imer within my control in order to add timer functionality.. . I able to access both methods and Props, How do I access the tick event? Basically when this particulr function is called I pass a var which sets the interval, I want to invoke and access the tick event from within my class which inherits the Timer

    Thanks

    Anthony Nystrom
  • Cor Ligthert

    #2
    Re: Inherits Question...

    Hi Anthony,

    I thought that a solution for this is to make your tick event as a public
    tick event from your created class witch is set by the the tick event inside
    the class.

    If this is not clear repeat?

    I hope this helps?

    Cor


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Inherits Question...

      * =?Utf-8?B?QW50aG9ueSB OeXN0cm9t?= <anthonynystrom @genetibase.com > scripsit:[color=blue]
      > I am inheriting the System.Timers.T imer within my control in order to
      > add timer functionality.. .[/color]

      Are you really /inheriting/ from this class, or are you /instantiating/
      this class?
      [color=blue]
      > I able to access both methods and Props, How do I access the tick
      > event? Basically when this particulr function is called I pass a var
      > which sets the interval, I want to invoke and access the tick event from
      > within my class which inherits the Timer.[/color]

      "Post your code!"

      'System.Timers. Timer' doesn't have a 'Tick' event.

      --
      Herfried K. Wagner [MVP]
      <URL:http://dotnet.mvps.org/>

      Comment

      Working...