Click here to Skip to main content
15,917,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: Debugging the Dll build in Debug mode Pin
Calla10-Oct-11 20:17
Calla10-Oct-11 20:17 
GeneralRe: Debugging the Dll build in Debug mode Pin
Nyanoba10-Oct-11 22:38
Nyanoba10-Oct-11 22:38 
GeneralRe: Debugging the Dll build in Debug mode Pin
Daniel.Grondal12-Oct-11 2:22
Daniel.Grondal12-Oct-11 2:22 
QuestionWindows NameSpace Extension Pin
ycorre10-Oct-11 16:18
ycorre10-Oct-11 16:18 
AnswerRe: Windows NameSpace Extension Pin
Richard MacCutchan10-Oct-11 22:17
mveRichard MacCutchan10-Oct-11 22:17 
QuestionRole-Based Dynamic UI Pin
Matt U.10-Oct-11 15:28
Matt U.10-Oct-11 15:28 
AnswerRe: Role-Based Dynamic UI Pin
David Skelly10-Oct-11 22:14
David Skelly10-Oct-11 22:14 
GeneralRe: Role-Based Dynamic UI Pin
Matt U.11-Oct-11 1:56
Matt U.11-Oct-11 1:56 
The only form which will be affected is the main application form. It will not contain a ton of controls but it will contain some buttons, some menu items and some toolstrip items. There will be 4 or 5 roles which never change, there will be no need to add new roles and the requirements for each role will never change. Each user will only be part of one role at a time.

Hidden controls, unlike what I initially stated, will probably not be necessary aside from menu/toolstrip items. The only items I need to hide will be menu and toolstrip items, in which case the layout will change accordingly to place items in their new position.

I implemented this in a previous project. But there was a lot of "if role is Administrator then enable/show these controls; if role is Supervisor then enable/show only these controls; etc; etc". That became tedious after a while. So I am looking for a better solution.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 2:16
professionalWayne Gaylard11-Oct-11 2:16 
GeneralRe: Role-Based Dynamic UI Pin
Matt U.11-Oct-11 3:06
Matt U.11-Oct-11 3:06 
GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 3:16
professionalWayne Gaylard11-Oct-11 3:16 
GeneralRe: Role-Based Dynamic UI Pin
BobJanova11-Oct-11 3:15
BobJanova11-Oct-11 3:15 
GeneralRe: Role-Based Dynamic UI Pin
Wayne Gaylard11-Oct-11 3:23
professionalWayne Gaylard11-Oct-11 3:23 
GeneralRe: Role-Based Dynamic UI Pin
BillWoodruff11-Oct-11 7:09
professionalBillWoodruff11-Oct-11 7:09 
QuestionHow 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 15:22
professionalBillWoodruff10-Oct-11 15:22 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
Luc Pattyn10-Oct-11 15:57
sitebuilderLuc Pattyn10-Oct-11 15:57 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 20:19
professionalBillWoodruff10-Oct-11 20:19 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
PIEBALDconsult10-Oct-11 16:00
mvePIEBALDconsult10-Oct-11 16:00 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 20:15
professionalBillWoodruff10-Oct-11 20:15 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
PIEBALDconsult11-Oct-11 2:33
mvePIEBALDconsult11-Oct-11 2:33 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
BobJanova11-Oct-11 1:39
BobJanova11-Oct-11 1:39 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
harold aptroot11-Oct-11 2:54
harold aptroot11-Oct-11 2:54 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff11-Oct-11 7:28
professionalBillWoodruff11-Oct-11 7:28 
QuestionTcpClient - Detecting closed connections Pin
Grimes10-Oct-11 11:32
Grimes10-Oct-11 11:32 
AnswerRe: TcpClient - Detecting closed connections Pin
BobJanova10-Oct-11 23:24
BobJanova10-Oct-11 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.