I'm making my own usercontrol, inherited from TextBox...
I have overrided the OnTextChanged event to do some stuff. Now if I use this control on a form, the TextChange event will never fire:(
what should I do?
Printable View
I'm making my own usercontrol, inherited from TextBox...
I have overrided the OnTextChanged event to do some stuff. Now if I use this control on a form, the TextChange event will never fire:(
what should I do?
Try calling the MyBase.OnTextChanged from inside the Overrode one. I think you may need to call it first before your code, too.
there is no such method that I can call :(Quote:
Originally posted by Edneeis
Try calling the MyBase.OnTextChanged from inside the Overrode one. I think you may need to call it first before your code, too.
doesnt show up in the intellisense... maybe it's becasue I overrode it?:rolleyes:
It doesn't show up in the intellisense for some reason but its there and the intellisense kicks back in for the parameters once you type it. Sounds like a bit of a bug.
VB Code:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs) MyBase.OnTextChanged(e) 'your code here End Sub
aah thanks:) stupid intellisense:DQuote:
Originally posted by Edneeis
It doesn't show up in the intellisense for some reason but its there and the intellisense kicks back in for the parameters once you type it. Sounds like a bit of a bug.
VB Code:
Protected Overrides Sub OnTextChanged(ByVal e As System.EventArgs) MyBase.OnTextChanged(e) 'your code here End Sub