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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DAXU

    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
  • Leon

    #2
    Re: how to close a winform when the border style is set to none?

    Alt + F4

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

    "DAXU" <DAXU@hotmail.c om写入消息
    news:f36b3bc7-c33c-4d77-a7e7-6c83ad02e9c2@j6 8g2000hsf.googl egroups.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

    Comment

    • zacks@construction-imaging.com

      #3
      Re: how to close a winform when the border style is set to none?

      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: f36b3bc7-c33c-4d77-a7e7-6c83ad02e9c2@j6 8g2000hsf.googl egroups.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.
      >

      Comment

      Working...