473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to close a winform when the border style is set to none?

Hi,

What I found is that when my form set border style to none, I can't
right click and close the program as I can when the border is set to
fixed single. (i.e., by right click the program in the toolbar and
click close there).

But I do need the form to by borderless, so is there any chance that I
can still close the program with a right click? Now I am using task
manager to close it.

Many Thanks

Jerry
Oct 21 '08 #1
2 1607
Alt + F4

=============== ===

"DAXU" <DA**@hotmail.c om写入消息
news:f3******** *************** ***********@j68 g2000hsf.google groups.com...
Hi,

What I found is that when my form set border style to none, I can't
right click and close the program as I can when the border is set to
fixed single. (i.e., by right click the program in the toolbar and
click close there).

But I do need the form to by borderless, so is there any chance that I
can still close the program with a right click? Now I am using task
manager to close it.

Many Thanks

Jerry
Oct 21 '08 #2
On Oct 21, 7:45 am, "Leon" <amoon...@163.c omwrote:
Alt + F4
Alternatively, if yoiu really want to use the mouse you can do one of
several things.

You could put in a Form Double CLick event handler and close the form
there.

Or you could assign a context menu to the form that has an Exit menu
item.
=============== ===

"DAXU" <D...@hotmail.c omдϢnews: f3************* *************** ******@j68g2000 hsf.googlegroup s.com...
Hi,
What I found is that when my form set border style to none, I can't
right click and close the program as I can when the border is set to
fixed single. (i.e., by right click the program in the toolbar and
click close there).
But I do need the form to by borderless, so is there any chance that I
can still close the program with a right click? Now I am using task
manager to close it.
Oct 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2718
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there anyway to stop this...??? <HTML> <HEAD> <title>Conform Inbox</title> <meta content="False" name="vs_snapToGrid">
2
2448
by: tpaulson | last post by:
I have a couple of DIV's that I hide/display based on radio buttons. On the DIV's, I have multiple drop down boxes. The source shows that they are populated, but I can't make them drop down. Only click on the Unplatted Radio button, the rest isn't functional, yet. Any ideas how to make these drop down in FF. This works in IE. Here is the...
1
2011
by: Robert | last post by:
Probably something simple i'm overlooking, taking the below html and css style settings, when you view in a browser (IE or Mozilla for example), the table is a tiny bit less wide than the div. Yet I have set both to the exact same width (99%) and they have the same border settings. This also happens if i use a width like "800px". The...
1
4517
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the...
12
2579
by: Yuaw | last post by:
I managed to cobble together some code and all I need to be on my way is to have the close button I created to always be at the top right of my pop up. The pop ups are large versions of thumbnail images and vary in size, so that's why I need the button to follow the image size. Is this possible to do?? AND, this does not render correctly in...
2
3431
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3 datagrida. I would like to set it so that if value of column 3 in datagrid 1 is < 100 set to red, if = 100 set to green if value of column 3 in...
1
1249
by: want2learn | last post by:
Hi when i run my calendar.aspx site im just getting a blank site. Why do it not show the calendar !? Calendar.aspx <%@ Page Language="VB" AutoEventWireup="True" %> <%@ Import Namespace="System.Web.UI.WebControls.Calendar" %> <html> <head>
1
1741
by: kailashchandra | last post by:
Below is my code.i want the first division should be load when window is loading. <HTML> <HEAD> <script> function tabFunc(getthis) { var getIn=getthis.innerHTML; var getId=getIn+'_content';
1
4124
by: ahilar12 | last post by:
Hi all, I am new to php,my question is that in this following code i am retrieving many rows from the database which is working good.i want to delete a particular row(s) which is checked(checkbox) and this should be done when the deletecontact button is clicked and also should be deleted int the database also Somebody help me out on this...
0
7605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.