Hide system menu

L

Lance Johnson

I want to hide the system menu (the dropdown for the icon on the left)
without hiding the entire titlebar for my form. I haven't been able to
accomplish this. Is this possible, and if so how?

Lance Johnson
 
S

Stoitcho Goutsev \(100\)

Lance,

Look at the ControlBox property. Setting this property to false will hide
the system menu; the caption will stay there as long as there is some text
for it. If there is not text the caption bar will disappear.

You can also try to play with different border styles. FixedDialog for
example doesn't have icon.
 
L

Lance Johnson

Thanks for the info. I didn't have any text on the titlebar. I thought
that this had worked before, but didn't realize having no text would do
that.

Lance Johnson
 
L

Lance Johnson

I don't suppose there's a way to hide the system menu and have the x still
appear in the upper right?

Lance
 
S

Stoitcho Goutsev \(100\)

Lance,

If you leave ControlBox = true, FixedDialog border style has no icon, but
buttons; to hide minimize and maximize buttons set MaximizeBox and
MinimizeBox to false.

Other border style without icon but X button are tool windows, but they have
thinner caption.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top