Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. form question

form question

Scheduled Pinned Locked Moved Visual Basic
questionhelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sa_runner
    wrote on last edited by
    #1

    Is there a way to disable the close button in the upper right corner of a form? I know how to get rid of the minimize and maximize, but I would like to disable the close button as well. Any help would be greatly appreciated.

    M J S 3 Replies Last reply
    0
    • S sa_runner

      Is there a way to disable the close button in the upper right corner of a form? I know how to get rid of the minimize and maximize, but I would like to disable the close button as well. Any help would be greatly appreciated.

      M Offline
      M Offline
      Mohammad Al Hoss
      wrote on last edited by
      #2

      Hi, go to the form properties window and set the control box to false, and u can check the other properties like maximize and else.

      Mohammad Al Hoss

      1 Reply Last reply
      0
      • S sa_runner

        Is there a way to disable the close button in the upper right corner of a form? I know how to get rid of the minimize and maximize, but I would like to disable the close button as well. Any help would be greatly appreciated.

        J Offline
        J Offline
        John_Adams
        wrote on last edited by
        #3

        Hi, To get the desired result you need to use certain APIs. The following article explains how to disable the Close (X) button of a Windows From. For VB.Net http://www.devasp.net/net/articles/display/307.html[^] For VB6 http://www.freevbcode.com/ShowCode.asp?ID=2448[^] Hope this helps:)

        Regards, John Adams ComponentOne LLC

        1 Reply Last reply
        0
        • S sa_runner

          Is there a way to disable the close button in the upper right corner of a form? I know how to get rid of the minimize and maximize, but I would like to disable the close button as well. Any help would be greatly appreciated.

          S Offline
          S Offline
          sa_runner
          wrote on last edited by
          #4

          Thank you both!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups