Enable Apply button when needed
-
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
-
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
With a keypress event
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
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
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
-
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
In a textbox_input_textchanged event put button_apply.enable = true