Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralDataGrid - Click anywhere and act like you clicked to the far left. Pin
mikemilano27-Aug-03 10:46
mikemilano27-Aug-03 10:46 
GeneralRe: DataGrid - Click anywhere and act like you clicked to the far left. Pin
A.Wegierski27-Aug-03 19:49
A.Wegierski27-Aug-03 19:49 
QuestionHow to make shift/Ctrl Key press work within Datagrid? Pin
Chris#27-Aug-03 10:37
Chris#27-Aug-03 10:37 
GeneralImageList Pin
Katrina Gee27-Aug-03 8:17
Katrina Gee27-Aug-03 8:17 
GeneralRe: ImageList Pin
Ista28-Aug-03 3:22
Ista28-Aug-03 3:22 
QuestionC# & mySQL - What Driver To Use? Pin
mikemilano27-Aug-03 8:10
mikemilano27-Aug-03 8:10 
AnswerRe: C# & mySQL - What Driver To Use? Pin
Daniel Turini27-Aug-03 12:19
Daniel Turini27-Aug-03 12:19 
AnswerRe: C# & mySQL - What Driver To Use? Pin
zecodela27-Aug-03 22:28
zecodela27-Aug-03 22:28 
General.NET crypto Pin
devvvy27-Aug-03 8:01
devvvy27-Aug-03 8:01 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 11:19
sitebuilderDavid Stone27-Aug-03 11:19 
GeneralRe: .NET crypto Pin
devvvy27-Aug-03 13:18
devvvy27-Aug-03 13:18 
GeneralRe: .NET crypto Pin
devvvy27-Aug-03 13:35
devvvy27-Aug-03 13:35 
GeneralRe: .NET crypto Pin
devvvy27-Aug-03 13:38
devvvy27-Aug-03 13:38 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 20:38
sitebuilderDavid Stone27-Aug-03 20:38 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 20:31
sitebuilderDavid Stone27-Aug-03 20:31 
GeneralRe: .NET crypto Pin
David Stone27-Aug-03 20:24
sitebuilderDavid Stone27-Aug-03 20:24 
GeneralRe: .NET crypto Pin
devvvy28-Aug-03 0:34
devvvy28-Aug-03 0:34 
GeneralRe: .NET crypto Pin
David Stone28-Aug-03 9:06
sitebuilderDavid Stone28-Aug-03 9:06 
GeneralExtract Heading from a word doc Pin
kanch eramudu27-Aug-03 5:29
kanch eramudu27-Aug-03 5:29 
GeneralAttachment with Outlook express Pin
Velichko Sarev27-Aug-03 1:53
Velichko Sarev27-Aug-03 1:53 
GeneralAdministrator Privileges Pin
Manoj_kr7427-Aug-03 0:42
Manoj_kr7427-Aug-03 0:42 
GeneralRe: Administrator Privileges Pin
Kannan Kalyanaraman27-Aug-03 1:11
Kannan Kalyanaraman27-Aug-03 1:11 
Manoj,

Have a look at System.Security.Permissions namespace. You have fine grained security classes for each set of operations.
Also if you want to check for administrative privileges you need to do something like this,
PrincipalPermission myPermission = new    PrincipalPermission("Somebody", "BUILTIN\\Administrators");

then you can call the demand method to check if he belongs to the admin group. you can get the current user's name from System.Threading.Thread.CurrentPrincipal and assign it to WindowsPrincipal object and use WindowsIdentity to extract the username.
As for as popping up the dialog and restoring the rights, i have no idea.
hope this helps you getting started.

- Kannan
GeneralRe: Administrator Privileges Pin
Mazdak27-Aug-03 8:51
Mazdak27-Aug-03 8:51 
Generalstore users settings Pin
Member 50926226-Aug-03 23:30
Member 50926226-Aug-03 23:30 
GeneralRe: store users settings Pin
Kannan Kalyanaraman27-Aug-03 1:19
Kannan Kalyanaraman27-Aug-03 1:19 

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.