Click here to Skip to main content
15,867,594 members
Home / Discussions / C#
   

C#

 
QuestionStack and heap Pin
Member 111616254-Feb-15 19:49
Member 111616254-Feb-15 19:49 
AnswerRe: Stack and heap Pin
Richard MacCutchan4-Feb-15 21:33
mveRichard MacCutchan4-Feb-15 21:33 
AnswerRe: Stack and heap PinPopular
OriginalGriff4-Feb-15 22:00
mveOriginalGriff4-Feb-15 22:00 
GeneralRe: Stack and heap Pin
Rob Philpott5-Feb-15 4:53
Rob Philpott5-Feb-15 4:53 
GeneralRe: Stack and heap Pin
DelphiCoder5-Feb-15 17:56
DelphiCoder5-Feb-15 17:56 
AnswerRe: Stack and heap Pin
BillWoodruff5-Feb-15 0:56
professionalBillWoodruff5-Feb-15 0:56 
Questionsetting user permissions to winform controls c# Pin
Member 111236393-Feb-15 23:33
Member 111236393-Feb-15 23:33 
AnswerRe: setting user permissions to winform controls c# Pin
OriginalGriff4-Feb-15 0:06
mveOriginalGriff4-Feb-15 0:06 
We really can't give you a specific reply to this: we have no idea at all how your app works.
But I'd assume that you have a "logged in user" instance of a User class or similar - and I'd keep permissions as an enum property of that class, most likely.

So as part of your various Form.Load event handlers, check your user permissions and either set the appropriate Control.Enable or Control.Visible properties to false if the aren't allowed. (Or better, default to false and set to true if they are allowed).

But myself, I wouldn't do that - I would have "admin only" forms, which are only displayed if the user is permitted, and disable access to those instead.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: setting user permissions to winform controls c# Pin
Member 111236394-Feb-15 0:24
Member 111236394-Feb-15 0:24 
GeneralRe: setting user permissions to winform controls c# Pin
OriginalGriff4-Feb-15 0:42
mveOriginalGriff4-Feb-15 0:42 
GeneralRe: setting user permissions to winform controls c# Pin
Member 111236394-Feb-15 0:48
Member 111236394-Feb-15 0:48 
GeneralRe: setting user permissions to winform controls c# Pin
OriginalGriff4-Feb-15 1:33
mveOriginalGriff4-Feb-15 1:33 
GeneralRe: setting user permissions to winform controls c# Pin
Member 111236394-Feb-15 1:42
Member 111236394-Feb-15 1:42 
GeneralRe: setting user permissions to winform controls c# Pin
manchanx4-Feb-15 2:09
professionalmanchanx4-Feb-15 2:09 
GeneralRe: setting user permissions to winform controls c# Pin
BillWoodruff4-Feb-15 6:08
professionalBillWoodruff4-Feb-15 6:08 
QuestionERROR:Only one usage of each socket address (protocol/network address/port) is normally permitted Pin
Prabhu Sridharan3-Feb-15 21:03
Prabhu Sridharan3-Feb-15 21:03 
AnswerRe: ERROR:Only one usage of each socket address (protocol/network address/port) is normally permitted Pin
Richard MacCutchan3-Feb-15 22:49
mveRichard MacCutchan3-Feb-15 22:49 
QuestionTerminated due to timeout.. Working properly with small input like 100 but not with large example 10000 Pin
Member 114256643-Feb-15 20:25
Member 114256643-Feb-15 20:25 
AnswerRe: Terminated due to timeout.. Working properly with small input like 100 but not with large example 10000 Pin
Mycroft Holmes3-Feb-15 20:57
professionalMycroft Holmes3-Feb-15 20:57 
AnswerRe: Terminated due to timeout.. Working properly with small input like 100 but not with large example 10000 Pin
BillWoodruff3-Feb-15 21:04
professionalBillWoodruff3-Feb-15 21:04 
QuestionSHDocVw.dll access denied system.dynamic.dll Pin
Digriz773-Feb-15 12:51
Digriz773-Feb-15 12:51 
AnswerRe: SHDocVw.dll access denied system.dynamic.dll Pin
Bernhard Hiller5-Feb-15 7:54
Bernhard Hiller5-Feb-15 7:54 
GeneralRe: SHDocVw.dll access denied system.dynamic.dll Pin
Digriz775-Feb-15 14:26
Digriz775-Feb-15 14:26 
GeneralRe: SHDocVw.dll access denied system.dynamic.dll Pin
DelphiCoder5-Feb-15 20:44
DelphiCoder5-Feb-15 20:44 
QuestionHow to add foregin key in code firest Pin
Member 114240953-Feb-15 5:28
Member 114240953-Feb-15 5:28 

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.