G
Gonçalo Boléo
I wan't to make a class that as a property that references a textbox and
then cath the events of the text box in the class.
In VB6 i make something like this:
Dim WithEvents m_oTxt as VB.Textbox
Property Let ....
Property Set ....
And then simply had events for the m_oTxt variable
m_oTxt_Change
m_oTxt_KeyPress(...)
I can't do the same in VB.Net because i can't declare a variable of the type
TextBox and if i create a variable of the type Object it doesn't let me cath
de events.
How can i do this?
thanks in advance,
Gonçalo Boléo
Portugal
then cath the events of the text box in the class.
In VB6 i make something like this:
Dim WithEvents m_oTxt as VB.Textbox
Property Let ....
Property Set ....
And then simply had events for the m_oTxt variable
m_oTxt_Change
m_oTxt_KeyPress(...)
I can't do the same in VB.Net because i can't declare a variable of the type
TextBox and if i create a variable of the type Object it doesn't let me cath
de events.
How can i do this?
thanks in advance,
Gonçalo Boléo
Portugal