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 avoid validation for the form closing

How to avoid validation for the form closing

Scheduled Pinned Locked Moved Visual Basic
tutorial
2 Posts 2 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.
  • R Offline
    R Offline
    ramki pindi
    wrote on last edited by
    #1

    hi i need to know about "how to avoid the validation on form closing " . when iam put some validations for text boxes when i closing the form it will risises the validation even .

    N 1 Reply Last reply
    0
    • R ramki pindi

      hi i need to know about "how to avoid the validation on form closing " . when iam put some validations for text boxes when i closing the form it will risises the validation even .

      N Offline
      N Offline
      nlarson11
      wrote on last edited by
      #2

      you can either make a class level variable and set it to true in the form_closing event. then in each event, check if the variable is true and if so...get out of the event. you can also check if me.isdisposed and get out if that is true also...

      'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous

      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