By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

Systemmenu - add menuitems

P: n/a
Hello,

I tried to add menuitems to the systemmenu of my application, but I don't
know how I can do this with C#.
Can anythink help me?

With C++ the systemmenu was available about the method
"m_pMainWnd->GetSystemMenu()". And how is it with C#?

Thanks in advance,
Hubert
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Only difference is there are no pointers

In C#

this.lobjMainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemFile,
this.menuItemEdit});

Nirosh.

"Hubert Hermanutz" <hh********@kavo.de> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Hello,

I tried to add menuitems to the systemmenu of my application, but I don't
know how I can do this with C#.
Can anythink help me?

With C++ the systemmenu was available about the method
"m_pMainWnd->GetSystemMenu()". And how is it with C#?

Thanks in advance,
Hubert

Nov 15 '05 #2

P: n/a
Hi Nirosh,

I want not add a mainmenu, but I want add a systemmenu.

Thanks,
Hubert
"Champika Nirosh" <no****@textcentric.lk> schrieb im Newsbeitrag
news:uS**************@TK2MSFTNGP11.phx.gbl...
Hi,

Only difference is there are no pointers

In C#

this.lobjMainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemFile,
this.menuItemEdit});

Nirosh.

"Hubert Hermanutz" <hh********@kavo.de> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Hello,

I tried to add menuitems to the systemmenu of my application, but I don't know how I can do this with C#.
Can anythink help me?

With C++ the systemmenu was available about the method
"m_pMainWnd->GetSystemMenu()". And how is it with C#?

Thanks in advance,
Hubert


Nov 15 '05 #3

P: n/a
OIC in that case u have to use user32 dll and pinvoke to communicate with it

follow this
http://www.developerfusion.com/show/3413/

Nirosh.
"Hubert Hermanutz" <hh********@kavo.de> wrote in message news:uS**************@TK2MSFTNGP11.phx.gbl...
Hi Nirosh,

I want not add a mainmenu, but I want add a systemmenu.

Thanks,
Hubert


"Champika Nirosh" <no****@textcentric.lk> schrieb im Newsbeitrag
news:uS**************@TK2MSFTNGP11.phx.gbl...
Hi,

Only difference is there are no pointers

In C#

this.lobjMainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItemFile,
this.menuItemEdit});

Nirosh.

"Hubert Hermanutz" <hh********@kavo.de> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl...
Hello,

I tried to add menuitems to the systemmenu of my application, but I don't know how I can do this with C#.
Can anythink help me?

With C++ the systemmenu was available about the method
"m_pMainWnd->GetSystemMenu()". And how is it with C#?

Thanks in advance,
Hubert





Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.