Click here to Skip to main content
14,390,091 members
   

C#

 
AnswerRe: How to disable other buttons based on user role login Pin
Richard MacCutchan8-Nov-19 23:53
mveRichard MacCutchan8-Nov-19 23:53 
GeneralRe: How to disable other buttons based on user role login Pin
Mycroft Holmes9-Nov-19 11:21
MemberMycroft Holmes9-Nov-19 11:21 
GeneralRe: How to disable other buttons based on user role login Pin
OriginalGriff9-Nov-19 11:35
mveOriginalGriff9-Nov-19 11:35 
GeneralRe: How to disable other buttons based on user role login Pin
Richard MacCutchan9-Nov-19 21:53
mveRichard MacCutchan9-Nov-19 21:53 
GeneralRe: How to disable other buttons based on user role login Pin
Mycroft Holmes10-Nov-19 11:08
MemberMycroft Holmes10-Nov-19 11:08 
AnswerRe: How to disable other buttons based on user role login Pin
BillWoodruff9-Nov-19 21:31
mveBillWoodruff9-Nov-19 21:31 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 3:01
mveEddy Vluggen10-Nov-19 3:01 
GeneralRe: How to disable other buttons based on user role login Pin
BillWoodruff10-Nov-19 5:24
mveBillWoodruff10-Nov-19 5:24 
Eddy Vluggen wrote:
When you have a button on a WinForm, you can inspect its properties. So, if I see a disabled button, I'll simply toggle the "enabled" property to gain access. If there's no button visible, I'll look at the form and check if there's an invisible button as a child. That means hiding/disabling buttons is not secure.
If you believe the OP is a "beginner," do you think they will understand this ?
Eddy Vluggen wrote:
I dislike the idea of asking the user for a password in WinForms; if need be, all assemblies can be decompiled, adapted, and recompiled. For ASP that's less of an issue - but then I'd assume an AD that does the authentication, which means you don't need to provide yet another login.
If the app stores no passwords, how can any form of hacking the app discover them ... for that matter, lots of Winform apps consume the plain-text user-entered password, hash it, salt it, and use that to query the DB for a check.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 7:16
mveEddy Vluggen10-Nov-19 7:16 
GeneralRe: How to disable other buttons based on user role login Pin
Richard MacCutchan10-Nov-19 5:49
mveRichard MacCutchan10-Nov-19 5:49 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 7:14
mveEddy Vluggen10-Nov-19 7:14 
GeneralRe: How to disable other buttons based on user role login Pin
Richard MacCutchan10-Nov-19 7:20
mveRichard MacCutchan10-Nov-19 7:20 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 8:32
mveEddy Vluggen10-Nov-19 8:32 
GeneralRe: How to disable other buttons based on user role login Pin
BillWoodruff10-Nov-19 7:47
mveBillWoodruff10-Nov-19 7:47 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 8:45
mveEddy Vluggen10-Nov-19 8:45 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 9:01
mveEddy Vluggen10-Nov-19 9:01 
GeneralRe: How to disable other buttons based on user role login Pin
BillWoodruff10-Nov-19 12:06
mveBillWoodruff10-Nov-19 12:06 
GeneralRe: How to disable other buttons based on user role login Pin
Eddy Vluggen10-Nov-19 12:59
mveEddy Vluggen10-Nov-19 12:59 
QuestionIs the command to check if the bell is running or stopped ? Pin
Member 24584677-Nov-19 21:55
MemberMember 24584677-Nov-19 21:55 
AnswerRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming8-Nov-19 2:39
mveRichard Deeming8-Nov-19 2:39 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846711-Nov-19 18:45
MemberMember 245846711-Nov-19 18:45 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming12-Nov-19 1:15
mveRichard Deeming12-Nov-19 1:15 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846712-Nov-19 15:25
MemberMember 245846712-Nov-19 15:25 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Richard Deeming13-Nov-19 2:30
mveRichard Deeming13-Nov-19 2:30 
GeneralRe: Is the command to check if the bell is running or stopped ? Pin
Member 245846713-Nov-19 16:14
MemberMember 245846713-Nov-19 16:14 

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.