What is th best way for me to create an event handler (VB.net)
Posted on 2009-05-14
I know there is allot of subject matter on the question im going to ask...but... there is so mcuh web sh** that i cant find a decent example that does what it says on the box.
So with that in mind i wanted to ask the senior devs for advice on the following.
Q. Im in design stage of a massive VB.net project, with lots of forms menus etc, in the past i have always created a module with my globaly shared events in, i then map the events in the required form i.e "add handler", then when required i raise the event passing whatever i need at the time for a particualar method to work correctly allot of the time they are bools, ints and vars.
In one of my previous projects i had like nearly 100 shared events in a module, is this safe? the apps have always run quickly as yo would expect but im just curious of what i have explained is the best way for me to achieve a fast code safe app.
Again i have never had any problems with the way i have done things but i wanted to read the thoughts of others on the subject as there is way too much ambiguity on this particular subject.
p.s if you reply please post example so that other readers can take advantage of your knowledge.