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
Printable View
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
Depends... if you're not using them in your code, (Nothing, Nothing) will suffice nicely, in my experience.
Unless you are using the sender or e objects in the event then it doesn't really matter. I usually use (Me,EventArgs.Empty)
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.