How to enable and disable forms buttons in windows
I have master and master detail forms on which three buttons that are insert, update ,delete. I want to enable or disable it according to user who is logged in. For example if user is admin then he can perform insert,update, delete. If user is supervisor then he can perform only insert and update operation and delete button should be disable to him. if user is worker then all three buttons should be disable to him. How can I do that in windows application?
Jignesh TrivediPosted Jul 12, 2013, 12:52 AM
hi,
System.Windows.Forms.Button class has property called Enabled with help of this you can enabled / disable button on winform.
Please refer
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.enabled.aspx
hope this will help you.
Kunal VaishyaPosted Jul 12, 2013, 12:28 AM