473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows form - no cross

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
3 2497

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Skip Montanaro | last post by:
I'd like to package up my typing watcher script in a bundled form (no separate Python install required) for use on Windows. (Un)fortunately, I don't have access to a Windows computer. Do any of...
13
by: Russell E. Owen | last post by:
I'm trying to launch an application from Python 2.3 on Windows. The application is "ds9" (an image viewer), and is installed in C:\Program Files\ds9\ds9 On unix I just do: os.popen3("ds9") and...
1
by: Codemonkey | last post by:
Hi, Sorry for the cross group post, but I couldn't find a group that deals with threading in .net. Anyway, I've noticed a difference in the way my program acts on Windows 98 than it does on...
2
by: James CC | last post by:
I have a strange bug in C# using windows forms. To make sure it's not some bug with my code, I've gone back to a simple test app, and still see the same behavior. I have created a simple C#...
4
by: ljh | last post by:
I am trying to run some pretty simple code that monitors a folder for changes (copied the example at http://www.codeproject.com/dotnet/folderwatcher.asp). But, when I try and update a textbox...
1
by: Rykie | last post by:
I am primarily a web developer, but have to develop this windows app. It works a treat, but it has some places where it lags and some long running processes, which I want to provide user feedback...
5
by: superjacent | last post by:
Hope someone can help. I have a saved parent form containing an unbound sub-form. I set the SourceObject (form) after the Parent Form opens/loads. The sub-form (datasheet view) basically...
6
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
2
by: Jaye | last post by:
I have facing a difficult problem about windows service I have created a windows Service and I have add some set/get method to return the value that caluate in background. And i have another...
9
by: dm3281 | last post by:
Hello -- I plan on writing a C# service using VS2005. If I want my service to have a tray icon, is this typically done from within my service or do/should I create a controller application and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.