C
crk2
Here a simple one. (At least I think it is?) and any help would be truly
appreciated.
I have an inherited textbox on my form based on a custom texbox control. It
looks something like this (I'll keep it simple)
Base Class:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
MyBase.OnTextChanged(e)
MsgBox("In the class")
End Sub
Inherited Object (on the form):
Public Sub TextBoxBase1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBoxBase1.TextChanged
MsgBox("In the form")
End Sub
I want to see how I can prevent the base classes ontextchanged event from
firing and override the base's code and handle everything on the form. I'm
sure it's probably a simple question, but for a fairly new .net'er , it got
me stumped...
appreciated.
I have an inherited textbox on my form based on a custom texbox control. It
looks something like this (I'll keep it simple)
Base Class:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs)
MyBase.OnTextChanged(e)
MsgBox("In the class")
End Sub
Inherited Object (on the form):
Public Sub TextBoxBase1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBoxBase1.TextChanged
MsgBox("In the form")
End Sub
I want to see how I can prevent the base classes ontextchanged event from
firing and override the base's code and handle everything on the form. I'm
sure it's probably a simple question, but for a fairly new .net'er , it got
me stumped...