473,396 Members | 1,998 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.

Remove Close Button

4
I am currently writing an application and need to remove the close option from the form (The x button at the top right). I see that there are many examples of how to disable the close button and how to remove all the buttons. But for my application I would like to have only the minimize option available and thus the examples I have seen for VB.net will not help.

Does anybody know how to just remove the close button?

Thanks
Oct 9 '07 #1
1 1202
Shashi Sadasivan
1,435 Expert 1GB
I am currently writing an application and need to remove the close option from the form (The x button at the top right). I see that there are many examples of how to disable the close button and how to remove all the buttons. But for my application I would like to have only the minimize option available and thus the examples I have seen for VB.net will not help.

Does anybody know how to just remove the close button?

Thanks
I am not aware of remooving the close button keeping other buttons in place. It generally works the other way. (You can get the minimize and maximize buttons out, but not the close button)
However you can remove all buttons by setting the ControlBox property of the form to false. And implement your own close button.

Maybe this is a safety mechanism by .Net so that people dont accidently remove the close button and then try to figure out how to close it!

cheers
Oct 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Geoff Cox | last post by:
Hello, I have a button which the user clicks to move to the next question and when the last question is answered I would like the button to be removed. How do I do this? Thanks Geoff
0
by: mawi | last post by:
Hello, Description: I create panels with some controls on a page using a new panel button. One of the controls on each panel is the "close panel" button that is supposed to close the panel it...
12
by: Mika M | last post by:
Customer wants the Close (X)-button of the forms top right corner to be Disabled or removed from Windows Form-application, which is made using VB.NET, but leave MinimizeBox and MaximizeBox. I...
2
by: ohadasor | last post by:
Hello, I have an MDI child, which I need to be opened as long as the mainframe is opened. The problem is that the user can close it using the X button in the form's top-right edge. How can I...
1
by: sachinkale | last post by:
I m working on windows application in VB.net. I m developing a wizard where i dont need close button so please tell me the way to remove it from my window.
1
by: ck | last post by:
What should I program in order to close window and remove a text file as soon as users click on "Abort" button. Thanks.
5
by: solar | last post by:
How can I remove the three buttons on the upper right corner in the database ? These three buttons are called "minimize" "restoredown"and "close". With the command Application.CommandBars("Menu...
4
by: sasimca007 | last post by:
Hello friends, In my project, i am opening a window with javascript, in that new window i am providing a link to close that window, then there is no use of default close...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.