Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert to C# code Pin
Judah Gabriel Himango13-Nov-07 3:59
sponsorJudah Gabriel Himango13-Nov-07 3:59 
QuestionRe: How to convert to C# code Pin
Programm3r13-Nov-07 20:08
Programm3r13-Nov-07 20:08 
AnswerRe: How to convert to C# code Pin
Guffa13-Nov-07 5:59
Guffa13-Nov-07 5:59 
GeneralRe: How to convert to C# code Pin
Programm3r13-Nov-07 18:29
Programm3r13-Nov-07 18:29 
QuestionDatetime Problem Pin
Navneet Hegde13-Nov-07 3:10
Navneet Hegde13-Nov-07 3:10 
AnswerRe: Datetime Problem Pin
Laoujin13-Nov-07 4:03
Laoujin13-Nov-07 4:03 
QuestionFinding currently logged on user Pin
conor2013-Nov-07 2:52
conor2013-Nov-07 2:52 
AnswerRe: Finding currently logged on user Pin
Justin Perez13-Nov-07 3:09
Justin Perez13-Nov-07 3:09 
conor20 wrote:
Does anyone know how to access the curently logged on user to Windows in C#?


What do you mean? Your subject and that sound like 2 different things Smile | :) Do you want to get the currently logged on user, and the domain?

public static string getCurrentUsernameAndDomain()
{
  WindowsIdentity user = WindowsIdentity.GetCurrent();
  return user.Name;
}


conor20 wrote:
Subject:Re: Finding currently logged on user


That will "find" the current logged on user.

"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer

I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

AnswerRe: Finding currently logged on user Pin
Vasudevan Deepak Kumar13-Nov-07 20:32
Vasudevan Deepak Kumar13-Nov-07 20:32 
GeneralRe: Finding currently logged on user Pin
conor2015-Nov-07 4:55
conor2015-Nov-07 4:55 
GeneralRe: Finding currently logged on user Pin
conor2016-Nov-07 0:32
conor2016-Nov-07 0:32 
QuestionExport File Pin
MumbleB13-Nov-07 2:44
MumbleB13-Nov-07 2:44 
AnswerRe: Export File Pin
duncanmhor13-Nov-07 2:56
duncanmhor13-Nov-07 2:56 
AnswerRe: Export File Pin
SVb.net13-Nov-07 5:51
SVb.net13-Nov-07 5:51 
QuestionHow to control forecolor of a disabled label Pin
baelzaden13-Nov-07 1:39
baelzaden13-Nov-07 1:39 
Questionfile rename application Pin
Sunil Wise13-Nov-07 1:18
professionalSunil Wise13-Nov-07 1:18 
Questionadd column to datagridview Pin
arkiboys13-Nov-07 1:15
arkiboys13-Nov-07 1:15 
AnswerRe: add column to datagridview Pin
arkiboys13-Nov-07 2:40
arkiboys13-Nov-07 2:40 
QuestionDynamically Binding Data to a Label Pin
sindhutiwari13-Nov-07 1:14
sindhutiwari13-Nov-07 1:14 
QuestionAddPrinterConnection failing to add network printer Pin
ekynox13-Nov-07 0:52
ekynox13-Nov-07 0:52 
AnswerRe: AddPrinterConnection failing to add network printer Pin
ekynox15-Nov-07 9:44
ekynox15-Nov-07 9:44 
QuestionDynamic controls in web Pin
M. J. Jaya Chitra13-Nov-07 0:45
M. J. Jaya Chitra13-Nov-07 0:45 
Questionvs2005, I need to connect data source using c# Pin
kkooring13-Nov-07 0:28
kkooring13-Nov-07 0:28 
QuestionXMLDocument.GetElementsByTagName returns comments ! Pin
N a v a n e e t h13-Nov-07 0:16
N a v a n e e t h13-Nov-07 0:16 
AnswerRe: XMLDocument.GetElementsByTagName returns comments ! Pin
Sun Rays13-Nov-07 0:27
Sun Rays13-Nov-07 0:27 

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.