robM
12-04-2004, 09:56 PM
Hey,
In my program, I declare the variable lapt as follows:
Public lapt
Later in the code, based on some other factors, I set the lapt variable to represents a control in a code such as
lapt = New Label()
Then I try to add a handler to the new object:
AddHandler lapt.Click, AddressOf lapt_Click
The intellisence fusses over the lapt.click, saying:
"click is not an event of system.object"
How can i solve this issue?
robM
In my program, I declare the variable lapt as follows:
Public lapt
Later in the code, based on some other factors, I set the lapt variable to represents a control in a code such as
lapt = New Label()
Then I try to add a handler to the new object:
AddHandler lapt.Click, AddressOf lapt_Click
The intellisence fusses over the lapt.click, saying:
"click is not an event of system.object"
How can i solve this issue?
robM