PC Review


Reply
Thread Tools Rate Thread

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

 
 
DAXU
Guest
Posts: n/a
 
      21st Oct 2008
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
 
Reply With Quote
 
 
 
 
Leon
Guest
Posts: n/a
 
      21st Oct 2008
Alt + F4

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

"DAXU" <(E-Mail Removed)> 写入消息
news:f36b3bc7-c33c-4d77-a7e7-(E-Mail Removed)...
> 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


 
Reply With Quote
 
zacks@construction-imaging.com
Guest
Posts: n/a
 
      21st Oct 2008
On Oct 21, 7:45 am, "Leon" <amoon...@163.com> wrote:
> 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.com> дϢnews:f36b3bc7-c33c-4d77-a7e7-(E-Mail Removed)...
>
>
>
> > 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.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP style GUI for winform =?Utf-8?B?dGFzbGVlbQ==?= Microsoft Dot NET Framework Forms 5 25th Jul 2007 08:58 PM
How to change Winform border color =?Utf-8?B?U2VyZw==?= Microsoft Dot NET Framework Forms 2 14th Mar 2006 02:16 AM
VB2005: Make Panel's border style similar to xp style textbox? =?Utf-8?B?Sm9iIExvdA==?= Microsoft Dot NET 0 21st Dec 2005 10:49 PM
How do I add a border-style to a shared border =?Utf-8?B?Sm9mZmVy?= Microsoft Frontpage 1 4th Jan 2005 09:57 AM
How do I add a border-style to a shared border =?Utf-8?B?Q2hyaXN0b3BoZXIgVC4=?= Microsoft Frontpage 0 3rd Jan 2005 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 PM.