Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

MainMenu help

Hi!

I try to design a mainmenu that can be controled from separate buttons that are placed in the same form. For example the forward button goes to the next menu option, the push button selects the current option etc.
The general concept is that the separate buttons provide the navigation in the mainmenu.

Is that possible to be done with .NET ?
I try to find out some functions but i would like your help.
[435 byte] By [denevias] at [2007-11-11 7:21:26]
# 1 Re: MainMenu help
Do u wanna invoke the specific menu event by clicking button?
Sync at 2007-11-11 21:49:09 >
# 2 Re: MainMenu help
Yes exactly.
denevias at 2007-11-11 21:50:09 >
# 3 Re: MainMenu help
You can do it ASP.Net by using eventshandlers and delegates. the same method which executes the menu event can be attached to the button click event...
srinivas_s at 2007-11-11 21:51:14 >
# 4 Re: MainMenu help
Yeah. denevias. I agree with Sri..
Try this coding.. hope it's that you want.

private void button1_Click(object sender, System.EventArgs e)
{
mnuFileOpen_Click(sender,e);
}
private void mnuFileOpen_Click(object sender, System.EventArgs e)
{
...
}
Sync at 2007-11-11 21:52:19 >