Overriding the Timer.Stop() Method

  • Thread starter Thread starter Michael_R_Banks
  • Start date Start date
M

Michael_R_Banks

I'm trying to create my own extended Timer object based on
Windows.Forms.Timer. As part of my code I've created a public
property called "Counting" and I want to change it's state based on
the Start() and Stop() methods. My problem is VB won't let me use
"Stop()" because it keeps telling me "Keyword is not valid as an
identifyer." How can I manager to get this past the compiler?

Public Shadows Sub Start()
_counting = True
MyBase.Start()
End Sub

public shadows sub Stop()
_counting = False
MyBase.stop()
End Sub
 
Michael_R_Banks said:
I'm trying to create my own extended Timer object based on
Windows.Forms.Timer. As part of my code I've created a public
property called "Counting" and I want to change it's state based on
the Start() and Stop() methods. My problem is VB won't let me use
"Stop()" because it keeps telling me "Keyword is not valid as an
identifyer." How can I manager to get this past the compiler?

Public Shadows Sub Start()
_counting = True
MyBase.Start()
End Sub

public shadows sub Stop()
_counting = False
MyBase.stop()
End Sub

public shadows sub [Stop]()
 
Back
Top