Anyone here expert to use AddEventHandler or other way to solve this small problem of mine because I am a student that developing my thesis.
Situation: I have a form (frm) and a textbox (txt) on the frm and a seperate .
vb file Class (cls) and a procedure (txtKeyUp) intended to handle the frm.txt.KeyUp event.
Problem: I'm not allowed to code in frm only in the cls.
Code Sample:
frm.
vb
Public Class frm
Inherits System.Windows.Forms.Form
''''''''''Generated Code
+ Windows "........."
End Class
cls.
vb
Public Class cls
Public Sub New()
''''''''''Implementation Code here
'If im not mistaken must be here the required code in order to
'Handle the frm.txt.KeyUp event.
'something AddEventHandler here.
End Sub
Public Sub txtKeyUp()
''''''''''Implementation Code here
End Sub
End Class
Eros Sy
Philippines