Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net Remoting return Object help Pin
WKIII1-Jul-04 8:08
WKIII1-Jul-04 8:08 
GeneralRe: .Net Remoting return Object help Pin
Tom Larsen1-Jul-04 19:19
Tom Larsen1-Jul-04 19:19 
GeneralRe: .Net Remoting return Object help Pin
bmasephol2-Jul-04 3:06
bmasephol2-Jul-04 3:06 
GeneralWhy Add and Remove button of propertyGrid disabled Pin
god4k1-Jul-04 6:48
god4k1-Jul-04 6:48 
GeneralRe: Why Add and Remove button of propertyGrid disabled Pin
Heath Stewart2-Jul-04 2:29
protectorHeath Stewart2-Jul-04 2:29 
General_42TabbedControl Validation Pin
RobertVG1-Jul-04 5:18
RobertVG1-Jul-04 5:18 
GeneralTabbedControl Validation Pin
RobertVG1-Jul-04 11:32
RobertVG1-Jul-04 11:32 
GeneralWindows Forms and Role Based Security Pin
OMalleyW1-Jul-04 5:14
OMalleyW1-Jul-04 5:14 
I thought I would post this just in case anyone was wondering how to go about doing Role based security with windows forms


Now most of the applications that I have written have been on the web so Role based security was ease
if (User.IsInRole("Power Users"))
{
.. code here
}


Now I am doing a windows application that requires Role based security..
So here is what I did..


public System.Security.Principal.WindowsPrincipal User;
this.User = new System.Security.Principal.WindowsPrincipal(System.Security.Principal.WindowsIdentity.GetCurrent() );

if (User.IsInRole("Power Users"))
{
.. code here
}
thats it!! easy stuff..

well like I said, I just wanted to post this for anyone who may need it.

Will


GeneralWord 2003 Pin
Giles1-Jul-04 4:34
Giles1-Jul-04 4:34 
QuestionHow to find out printable area? Pin
Pain_Elemental1-Jul-04 4:19
Pain_Elemental1-Jul-04 4:19 
AnswerRe: How to find out printable area? Pin
Pain_Elemental1-Jul-04 4:37
Pain_Elemental1-Jul-04 4:37 
AnswerRe: How to find out printable area? Pin
misterbear1-Jul-04 23:05
misterbear1-Jul-04 23:05 
GeneralDTS package Pin
Member 11509011-Jul-04 2:47
Member 11509011-Jul-04 2:47 
GeneralRe: DTS package Pin
Nick Parker1-Jul-04 4:07
protectorNick Parker1-Jul-04 4:07 
GeneralPocket PC\Telnet Pin
Schkin30-Jun-04 23:43
Schkin30-Jun-04 23:43 
GeneralRe: Pocket PC\Telnet Pin
Mike Dimmick1-Jul-04 0:04
Mike Dimmick1-Jul-04 0:04 
GeneralThe FlexGrid component Pin
saud_a_k30-Jun-04 23:34
saud_a_k30-Jun-04 23:34 
GeneralRe: The FlexGrid component Pin
Nick Parker1-Jul-04 4:18
protectorNick Parker1-Jul-04 4:18 
GeneralRe: The FlexGrid component Pin
saud_a_k1-Jul-04 18:19
saud_a_k1-Jul-04 18:19 
GeneralRe: The FlexGrid component Pin
saud_a_k1-Jul-04 23:44
saud_a_k1-Jul-04 23:44 
GeneralBefore Resize Pin
bouli30-Jun-04 22:55
bouli30-Jun-04 22:55 
GeneralRe: Before Resize Pin
Heath Stewart1-Jul-04 4:56
protectorHeath Stewart1-Jul-04 4:56 
GeneralRe: Before Resize Pin
bouli1-Jul-04 5:00
bouli1-Jul-04 5:00 
GeneralRe: Before Resize Pin
Dave Kreskowiak1-Jul-04 5:24
mveDave Kreskowiak1-Jul-04 5:24 
GeneralRe: Before Resize Pin
bouli1-Jul-04 5:35
bouli1-Jul-04 5:35 

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.