accessing events
-
MyClass myClassInstance = new MyClass();
myClassInstance.EventName += new EventHandler(MethodToHandleTheEvent);
...
private void MethodToHandleTheEvent(object sender, EventArgs e)
{
... handle the event
}I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in. Apathy Error: Don't bother striking any key.
-
MyClass myClassInstance = new MyClass();
myClassInstance.EventName += new EventHandler(MethodToHandleTheEvent);
...
private void MethodToHandleTheEvent(object sender, EventArgs e)
{
... handle the event
}I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in. Apathy Error: Don't bother striking any key.
ur codez not compile. plz fix asap. u not gr8! :mad:
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
-
ur codez not compile. plz fix asap. u not gr8! :mad:
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
:laugh: You should upgrade to VS2012 - .NET 5.0 has full support for the ellipsis automatic code generation command "..."
I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in. Apathy Error: Don't bother striking any key.