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

Windows form - no cross

P: n/a
I want to put an icon on a Windows Form top left hand corner but would like
to hide the maximize and close box on the top right hand corner.
Can I do that?
Sep 26 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

Hi,

You can hide the Maximize and Close buttons in Design-time using the
Properties window.

Set ControlBox and MaximizeBox properties to false.

These two properties are grouped under Window Style category.

Cheers
Dips
Alan T wrote:
I want to put an icon on a Windows Form top left hand corner but would like
to hide the maximize and close box on the top right hand corner.
Can I do that?
Sep 26 '06 #2

P: n/a
I have set the ControlBox to false but the icon has also gone.
How do I make the icon appeared?

"Dipankar" <di**********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>
Hi,

You can hide the Maximize and Close buttons in Design-time using the
Properties window.

Set ControlBox and MaximizeBox properties to false.

These two properties are grouped under Window Style category.

Cheers
Dips
Alan T wrote:
>I want to put an icon on a Windows Form top left hand corner but would
like
to hide the maximize and close box on the top right hand corner.
Can I do that?

Sep 27 '06 #3

P: n/a
Hi,

It is true that making ControlBox property false, will hide the full
control box including the icon.

Now If you want that user cannot close the Form using the Close button,
then there is a workaround.

1. Do not make ControlBox property false. Let it be true.
2. In the Form's FormClosing event, write the following code:
e.Cancel = true; // cancels the Closing event.

Cheers
Dips

Alan T wrote:
I have set the ControlBox to false but the icon has also gone.
How do I make the icon appeared?

"Dipankar" <di**********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...

Hi,

You can hide the Maximize and Close buttons in Design-time using the
Properties window.

Set ControlBox and MaximizeBox properties to false.

These two properties are grouped under Window Style category.

Cheers
Dips
Alan T wrote:
I want to put an icon on a Windows Form top left hand corner but would
like
to hide the maximize and close box on the top right hand corner.
Can I do that?
Sep 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.