C#/C# form
Expert: Srini Nagarajan - 7/14/2005
QuestionFirst of all I hope you have a good day!
I've created a windows form that contains some controls, when a user clicks on "Lock" button all controls become disabled, to enable them he should click on "Unlock" button, when he does so a form shows up, so the user should enter a password to enable the controls.
I've created two forms, main and password form, but when the user enters the correct pw and clicks on OK button, the controls are never enabled as expected. As you know the two forms are in different class, I failed to enable the controls through an object and public fields too.
Please advice for the solution.
Any help would be appreciated.
Thanks,
John
AnswerHi John
Sorry I haven't worked that much with WinForms... But I can give some ideas...
You can declare a global flag and on the right password process enable the flag and trigger the unlock event
I think this will work...
Happy Programming!!
-Srini