Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
Questione-mail through with Outlook Redemption library... Pin
Vasya - dragon24-Apr-06 5:19
Vasya - dragon24-Apr-06 5:19 
AnswerRe: e-mail through with Outlook Redemption library... Pin
Aaron Dilliard25-Apr-06 4:06
Aaron Dilliard25-Apr-06 4:06 
GeneralRe: e-mail through with Outlook Redemption library... Pin
Vasya - dragon25-Apr-06 11:07
Vasya - dragon25-Apr-06 11:07 
QuestionVar Scope Pin
Ashraf zia24-Apr-06 4:55
Ashraf zia24-Apr-06 4:55 
AnswerRe: Var Scope Pin
Rob Philpott24-Apr-06 5:26
Rob Philpott24-Apr-06 5:26 
AnswerRe: Var Scope Pin
Guffa24-Apr-06 6:04
Guffa24-Apr-06 6:04 
QuestionReacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 4:54
Denis Shamanin24-Apr-06 4:54 
AnswerRe: Reacting on MDI parent menu click Pin
Josh Smith24-Apr-06 5:23
Josh Smith24-Apr-06 5:23 
You can hook the Click event of a menu item on the MDI parent form via the MdiParent property on the child form. It then exposes the Menu property, which is the MainMenu on the MDI parent.

private void MDIChildForm_Load(object sender, System.EventArgs e)
{
	this.MdiParent.Menu.MenuItems[0].MenuItems[0].Click += new EventHandler(MDIParentMenuItem_Click);
}

private void MDIParentMenuItem_Click(object sender, EventArgs e)
{
	MessageBox.Show( "Hello" );
}


In the Click event handler, cast sender to a MenuItem to inspect the Checked property of the item that was clicked.

Josh

-- modified at 11:26 Monday 24th April, 2006
GeneralRe: Reacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 21:14
Denis Shamanin24-Apr-06 21:14 
GeneralRe: Reacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 21:19
Denis Shamanin24-Apr-06 21:19 
GeneralRe: Reacting on MDI parent menu click Pin
Josh Smith25-Apr-06 3:37
Josh Smith25-Apr-06 3:37 
GeneralRe: Reacting on MDI parent menu click Pin
Josh Smith25-Apr-06 3:31
Josh Smith25-Apr-06 3:31 
QuestionPerformance problem with file transfer via remoting Pin
mav.northwind24-Apr-06 2:55
mav.northwind24-Apr-06 2:55 
AnswerRe: Performance problem with file transfer via remoting Pin
Judah Gabriel Himango24-Apr-06 7:22
sponsorJudah Gabriel Himango24-Apr-06 7:22 
GeneralRe: Performance problem with file transfer via remoting Pin
mav.northwind24-Apr-06 8:10
mav.northwind24-Apr-06 8:10 
GeneralRe: Performance problem with file transfer via remoting Pin
Judah Gabriel Himango24-Apr-06 9:02
sponsorJudah Gabriel Himango24-Apr-06 9:02 
GeneralRe: Performance problem with file transfer via remoting Pin
mav.northwind25-Apr-06 0:07
mav.northwind25-Apr-06 0:07 
Questioncompilation options Pin
V.24-Apr-06 1:52
professionalV.24-Apr-06 1:52 
AnswerRe: compilation options Pin
Colin Angus Mackay24-Apr-06 2:33
Colin Angus Mackay24-Apr-06 2:33 
GeneralRe: compilation options Pin
V.24-Apr-06 2:55
professionalV.24-Apr-06 2:55 
GeneralRe: compilation options Pin
Colin Angus Mackay24-Apr-06 6:33
Colin Angus Mackay24-Apr-06 6:33 
GeneralRe: compilation options Pin
V.24-Apr-06 20:39
professionalV.24-Apr-06 20:39 
AnswerRe: compilation options Pin
J4amieC24-Apr-06 2:33
J4amieC24-Apr-06 2:33 
GeneralRe: compilation options Pin
V.24-Apr-06 2:54
professionalV.24-Apr-06 2:54 
Questionhow to make an click and drag program? Pin
fite24-Apr-06 1:24
fite24-Apr-06 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.