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. C#
  4. how to alert before closing the form

how to alert before closing the form

Scheduled Pinned Locked Moved C#
helpcsharptutorial
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.
  • F Offline
    F Offline
    froxy
    wrote on last edited by
    #1

    Friends I have a problem in c# windows application. I have a form which has controls like Combo Box, Text Box, User Control, Radio button and so on.If i modify any value in the control it should alert me when i close the form.Otherwise it should not.Suggest me the ways and events in which i can i do this.Please help me

    C X 2 Replies Last reply
    0
    • F froxy

      Friends I have a problem in c# windows application. I have a form which has controls like Combo Box, Text Box, User Control, Radio button and so on.If i modify any value in the control it should alert me when i close the form.Otherwise it should not.Suggest me the ways and events in which i can i do this.Please help me

      C Offline
      C Offline
      Calin Tatar
      wrote on last edited by
      #2

      You may use Form.FormClosing event. Use e.Cancel to cancel the closing process. So, you have to check your values_changed 'flag', if is true, display the alert, and set e.Cancel = true. Calin

      1 Reply Last reply
      0
      • F froxy

        Friends I have a problem in c# windows application. I have a form which has controls like Combo Box, Text Box, User Control, Radio button and so on.If i modify any value in the control it should alert me when i close the form.Otherwise it should not.Suggest me the ways and events in which i can i do this.Please help me

        X Offline
        X Offline
        Xmen Real
        wrote on last edited by
        #3

        how many accounts you have...

        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can

        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