Hiding command bar (or menu bar)

  • Thread starter Thread starter Norbert
  • Start date Start date
N

Norbert

Hi

I'd like to hide the command bar from a form
Problem: its visibile because i use the SIP
I managed to hide the SIP button, but the command bar is still here..

(myform.menu is set to null )

The only way I can hide it is setting my form to be the TopMost
(but I don't want to do it this way..)

Visual Studio 2005 beta2
PPC2003

regards
Nobs
 
If you don't add a MainMenu to your form, then it won't display a command
bar.
If you are sure there is no MainMenu added to your form and it still
displays a command bar, then it is probably your mistake. Perhaps somewhere
in your code you actually set a MainMenu for this form. Check it again!
Note that if you try to use the InputPanel control without a MainMenu you'll
get an exception. In this case you should use the API function "SipShowIM"
to show or hide the InputPanel (SIP). OpenNETCF has made a new InputPanel
control that inherits from Microsoft's InputPanel and adds some extra
functionality.
 
I found the the problem

In the Onload Method of my Main Form, I created a onother Form
(to enter some License Key).
The problem was this dialog has a Menu/Command bar and this it was
created always, even if i don't need it.

Even if i don't show this dialog, it somehow enabled the commandbar for
the MainForm.
The solution is not creating this form and if I have to Dispose it
after using it.
(Close alone is not enough)

To your comment to the Main Menu & SIP
I use the the SIP without an Menu and it works fine..
never had problems with this one.
 
The problem with the MainMenu and SIP is fixed in .NET CF 1.0 SP3
It may be observed in the versions prior SP3

Regards
Ruslan
 
Back
Top