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. how to disable only close buuton

how to disable only close buuton

Scheduled Pinned Locked Moved Visual Basic
tutorial
3 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.
  • I Offline
    I Offline
    iramg
    wrote on last edited by
    #1

    hello i want to disable only close button of the form and other two button should be enable please tell me how i can do this thing. plz tell me soon thanks

    R T 2 Replies Last reply
    0
    • I iramg

      hello i want to disable only close button of the form and other two button should be enable please tell me how i can do this thing. plz tell me soon thanks

      R Offline
      R Offline
      Roy Heil
      wrote on last edited by
      #2

      btnClose.enabled = false Roy.

      1 Reply Last reply
      0
      • I iramg

        hello i want to disable only close button of the form and other two button should be enable please tell me how i can do this thing. plz tell me soon thanks

        T Offline
        T Offline
        Tamimi Code
        wrote on last edited by
        #3

        hi try to use the closing event for your form Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel() = True ' this will stop the form closing End Sub Tamimi - Code

        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