Question Raise another control's event

Guardian

Active member
Joined
Jan 19, 2005
Messages
44
Location
England
Programming Experience
5-10
Hi i am trying to raise the event of another control on my form (of a specific type, eg i know it will have a Click event).

the problem i am having is that i cannot trigger another control's event. I can add handles to it:

VB.NET:
addhandler _controls(i).Click, addressof ClickFunction

but this does not allow me to trigger the event. I guess what i am trying to do is simulate a mouse click without actually clicking. I also wont know if the event is handled or event what the events handles... statement is called.

thanks
 
Dont worry about the solution - i found it :)

The items i am trying to trigger were ToolStripMenuItems, which i found have a PerformClick() function, which is exactly what i was after :)
 
Back
Top