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. Enable Apply button when needed

Enable Apply button when needed

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 4 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.
  • J Offline
    J Offline
    JoZ CaVaLLo
    wrote on last edited by
    #1

    Hi... I need to enable my Apply button only when the user edits something on the form (I have datagrids, text-, check-, comboboxes). All of them are bounded to a Databinding. What's the best way to get this behaviour?

    Life is not short... the problem is only how you organize yourself

    C N N 3 Replies Last reply
    0
    • J JoZ CaVaLLo

      Hi... I need to enable my Apply button only when the user edits something on the form (I have datagrids, text-, check-, comboboxes). All of them are bounded to a Databinding. What's the best way to get this behaviour?

      Life is not short... the problem is only how you organize yourself

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      With a keypress event

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      1 Reply Last reply
      0
      • J JoZ CaVaLLo

        Hi... I need to enable my Apply button only when the user edits something on the form (I have datagrids, text-, check-, comboboxes). All of them are bounded to a Databinding. What's the best way to get this behaviour?

        Life is not short... the problem is only how you organize yourself

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        I'd bind the "Enabled" property to my business object. So when value gets changed there, it gets enabled/disabled automatically. Check this[^] article.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        1 Reply Last reply
        0
        • J JoZ CaVaLLo

          Hi... I need to enable my Apply button only when the user edits something on the form (I have datagrids, text-, check-, comboboxes). All of them are bounded to a Databinding. What's the best way to get this behaviour?

          Life is not short... the problem is only how you organize yourself

          N Offline
          N Offline
          nelsonpaixao
          wrote on last edited by
          #4

          In a textbox_input_textchanged event put button_apply.enable = true

          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