Click here to Skip to main content
15,904,497 members
Home / Discussions / C#
   

C#

 
Question(XNA) Calculate FPS [modified] Please? Pin
MasterSharp22-Feb-08 11:02
MasterSharp22-Feb-08 11:02 
AnswerRe: (XNA) Calculate FPS [modified] Please? Pin
User 665823-Feb-08 1:07
User 665823-Feb-08 1:07 
GeneralBlock windows applications from dotnet webbrowser Pin
ric9422-Feb-08 9:13
ric9422-Feb-08 9:13 
AnswerRe: Block windows applications from dotnet webbrowser Pin
Spacix One22-Feb-08 10:09
Spacix One22-Feb-08 10:09 
GeneralRe: Block windows applications from dotnet webbrowser Pin
ric9422-Feb-08 10:14
ric9422-Feb-08 10:14 
GeneralHelp me with a program. Pin
Alex50122-Feb-08 8:30
Alex50122-Feb-08 8:30 
GeneralRe: Help me with a program. Pin
Skippums22-Feb-08 9:50
Skippums22-Feb-08 9:50 
GeneralRe: Help me with a program. Pin
Christian Graus22-Feb-08 10:24
protectorChristian Graus22-Feb-08 10:24 
GeneralRe: Help me with a program. Pin
Spacix One22-Feb-08 10:35
Spacix One22-Feb-08 10:35 
GeneralProblem with ToolStripTextBox Pin
stancrm22-Feb-08 5:15
stancrm22-Feb-08 5:15 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango22-Feb-08 6:55
sponsorJudah Gabriel Himango22-Feb-08 6:55 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm24-Feb-08 20:14
stancrm24-Feb-08 20:14 
GeneralRe: Problem with ToolStripTextBox Pin
Judah Gabriel Himango25-Feb-08 11:19
sponsorJudah Gabriel Himango25-Feb-08 11:19 
GeneralRe: Problem with ToolStripTextBox Pin
stancrm25-Feb-08 19:59
stancrm25-Feb-08 19:59 
QuestionHow to dock a form ? Pin
Aravinthan22-Feb-08 4:16
Aravinthan22-Feb-08 4:16 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 4:55
Dr. Emmett Brown22-Feb-08 4:55 
GeneralRe: How to dock a form ? Pin
Aravinthan22-Feb-08 17:59
Aravinthan22-Feb-08 17:59 
GeneralRe: How to dock a form ? Pin
Dr. Emmett Brown22-Feb-08 5:06
Dr. Emmett Brown22-Feb-08 5:06 
GeneralRe: How to dock a form ? Pin
Judah Gabriel Himango22-Feb-08 6:54
sponsorJudah Gabriel Himango22-Feb-08 6:54 
GeneralMake a .dll file Pin
Strategic_Thinker22-Feb-08 3:58
Strategic_Thinker22-Feb-08 3:58 
GeneralRe: Make a .dll file Pin
Ravi Bhavnani22-Feb-08 4:08
professionalRavi Bhavnani22-Feb-08 4:08 
GeneralRe: Make a .dll file Pin
Strategic_Thinker22-Feb-08 4:21
Strategic_Thinker22-Feb-08 4:21 
Generalknow if logged in account is an administrator Pin
pranu_1322-Feb-08 3:45
pranu_1322-Feb-08 3:45 
I have .Net 2.0 MSI. I installed this on Vista. To access few functionalities of the application installed, i check if the logged in account is an administrator as below:

WindowsPrincipal principal = (WindowsPrincipal)Thread.CurrentPrincipal;
_IsAuthorized = principal.IsInRole(WindowsBuiltInRole.Administrator) || principal.IsInRole(WindowsBuiltInRole.PowerUser);

This function detects the logged in account as administrator only for the user account with which i logged in to install the MSI.

For other computer administrator accounts it does not recognize.

How do i resolve this issue on Vista? Is there any other way to know if the logged in account is an administrator?
QuestionPosting Software to the Web Pin
danielhasdibs22-Feb-08 3:09
danielhasdibs22-Feb-08 3:09 
GeneralRe: Posting Software to the Web Pin
Ravi Bhavnani22-Feb-08 4:07
professionalRavi Bhavnani22-Feb-08 4:07 

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.