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

  • Thread starter Thread starter DAXU
  • Start date Start date
D

DAXU

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
 

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.
 
Back
Top