normally with a menu i use a simple switch statement. i'm thinking this is
not a very good way of doing it. does anyone have any suggestions on a
better way


--
Message posted via http://www.dotnetmonster.com

Re: Menu suggestion by Lloyd

Lloyd
Fri Aug 12 22:57:56 CDT 2005

what about an event handler?

--
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.
"Bud J via DotNetMonster.com" <forum@DotNetMonster.com> wrote in message
news:52C2B7FA83687@DotNetMonster.com...
> normally with a menu i use a simple switch statement. i'm thinking this
> is
> not a very good way of doing it. does anyone have any suggestions on a
> better way
>
>
> --
> Message posted via http://www.dotnetmonster.com



Re: Menu suggestion by Bud

Bud
Sat Aug 13 01:15:11 CDT 2005

thanks for the reply.

If i understand what you are saying
mnuItemOne.Click+= new EventHandler(OnMenuOneClick)


--
Message posted via http://www.dotnetmonster.com

Re: Menu suggestion by Bud

Bud
Sat Aug 13 01:21:31 CDT 2005

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.


--
Message posted via http://www.dotnetmonster.com

Re: Menu suggestion by Lloyd

Lloyd
Sat Aug 13 03:29:37 CDT 2005

I didn't really understand what you mean, so..
but that's the way I handle event!

--
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.
"Bud J via DotNetMonster.com" <forum@DotNetMonster.com> wrote in message
news:52C48909319CD@DotNetMonster.com...
> thanks for the reply.
>
> If i understand what you are saying
> mnuItemOne.Click+= new EventHandler(OnMenuOneClick)
>
>
> --
> Message posted via http://www.dotnetmonster.com



Re: Menu suggestion by Lloyd

Lloyd
Sat Aug 13 03:30:46 CDT 2005

> 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.
uh?
what kind of variation?
no "if" will ever be involved in such event dispatching....



Re: Menu suggestion by Herfried

Herfried
Sat Aug 13 14:47:47 CDT 2005

"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... :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>