|
I am new to winforms development, but have been developing netforms for a while now, and had one quick quesiton. I am developing an app (win forms) where I want only certian controls displayed at runtime depending on the user logged in. Now, I know it can be done like so:
------------------------------
if userloggedIn = admin then control.visible = true else control.visible = false
------------------
Or even have a function/sub that you pass the users credentials and control into and there set its properties, but there must be a better (I mean less typing) way to do this without developing two forms for every one.
Any ideas or examples?
Thx in Advance,
JS |