|
-
Oct 8th, 2002, 03:25 AM
#1
Thread Starter
Addicted Member
Calling Control event?
Hi
In vb6 when we want to call a control event we will just need to specify the name of the event, but in .net you will need to pass in parameters, my question is what type of paramenters do i need to pass in when i call a control event
Thanks
-
Oct 8th, 2002, 03:27 AM
#2
Member
Re: Calling Control event?
Depends... if you're not using them in your code, (Nothing, Nothing) will suffice nicely, in my experience.
Matthew Draper
[email protected]
"Genius may have its limitations, but stupidity is not thus handicapped." - Elbert Hubbard
"I like long walks, especially when they are taken by people who annoy me." - Noel Coward
-
Oct 8th, 2002, 10:09 AM
#3
Unless you are using the sender or e objects in the event then it doesn't really matter. I usually use (Me,EventArgs.Empty)
-
Oct 8th, 2002, 10:19 AM
#4
It really comes down to this though. If you need to call code that an event does also, the code should be placed in a seperate routione, then you can call the routine from the event, and from whatever code needs it. That should be the more proper way of doing that as I see it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|