thanks for the reply.
If i understand what you are saying
mnuItemOne.Click+= new EventHandler(OnMenuOneClick)
oops accidentally posted partial message
to continue
if i understand what you are saying
menuOne.Click+=new EventHandler(MenuOneClick)
menuTwo.Click+=new EventHandler(MenuTwoClick)
would definetly work but wouldn't that be a variation of a switch.
Lloyd Dupont - 13 Aug 2005 09:30 GMT
> to continue
>
[quoted text clipped - 3 lines]
>
> would definetly work but wouldn't that be a variation of a switch.
uh?
what kind of variation?
no "if" will ever be involved in such event dispatching....
Herfried K. Wagner [MVP] - 13 Aug 2005 20:47 GMT
"Bud J via DotNetMonster.com" <forum@DotNetMonster.com> schrieb:
> if i understand what you are saying
> menuOne.Click+=new EventHandler(MenuOneClick)
> menuTwo.Click+=new EventHandler(MenuTwoClick)
>
> would definetly work but wouldn't that be a variation of a switch.
Nope. The code you posted is the way to go... :-).

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
I didn't really understand what you mean, so..
but that's the way I handle event!

Signature
If you're in a war, instead of throwing a hand grenade at the enemy, throw
one of those small pumpkins. Maybe it'll make everyone think how stupid war
is, and while they are thinking, you can throw a real grenade at them.
Jack Handey.
> thanks for the reply.
>
> If i understand what you are saying
> mnuItemOne.Click+= new EventHandler(OnMenuOneClick)