Click here to Skip to main content
15,917,645 members
Home / Discussions / C#
   

C#

 
GeneralRe: How Do I Set a Combo Box Default Item? Pin
Jonso13-Nov-07 4:53
Jonso13-Nov-07 4:53 
GeneralRe: How Do I Set a Combo Box Default Item? [modified] Pin
Justin Perez13-Nov-07 4:56
Justin Perez13-Nov-07 4:56 
QuestionListViewItem Transparent BackColor Pin
MWaqas Badar13-Nov-07 3:53
MWaqas Badar13-Nov-07 3:53 
AnswerRe: ListViewItem Transparent BackColor Pin
Judah Gabriel Himango13-Nov-07 4:13
sponsorJudah Gabriel Himango13-Nov-07 4:13 
QuestionHow to get the names of all classes wich are derived from a base class ? Pin
MarkPhB13-Nov-07 3:49
MarkPhB13-Nov-07 3:49 
AnswerRe: How to get the names of all classes wich are derived from a base class ? Pin
Judah Gabriel Himango13-Nov-07 4:08
sponsorJudah Gabriel Himango13-Nov-07 4:08 
AnswerRe: How to get the names of all classes wich are derived from a base class ? [modified] Pin
ss2013-Nov-07 4:30
ss2013-Nov-07 4:30 
GeneralRe: How to get the names of all classes wich are derived from a base class ? Pin
Scott Dorman13-Nov-07 12:28
professionalScott Dorman13-Nov-07 12:28 
Questionconverting image to bitmap Pin
dogmatic6913-Nov-07 3:36
dogmatic6913-Nov-07 3:36 
AnswerRe: converting image to bitmap Pin
Judah Gabriel Himango13-Nov-07 4:04
sponsorJudah Gabriel Himango13-Nov-07 4:04 
JokeRe: converting image to bitmap Pin
Not Active13-Nov-07 5:08
mentorNot Active13-Nov-07 5:08 
GeneralRe: converting image to bitmap Pin
Vasudevan Deepak Kumar13-Nov-07 20:28
Vasudevan Deepak Kumar13-Nov-07 20:28 
QuestionDisabling default context Menu Pin
Adnan Siddiqi13-Nov-07 3:19
Adnan Siddiqi13-Nov-07 3:19 
AnswerRe: Disabling default context Menu Pin
Judah Gabriel Himango13-Nov-07 4:04
sponsorJudah Gabriel Himango13-Nov-07 4:04 
GeneralRe: Disabling default context Menu Pin
Adnan Siddiqi13-Nov-07 5:53
Adnan Siddiqi13-Nov-07 5:53 
QuestionHow to convert to C# code Pin
Programm3r13-Nov-07 3:15
Programm3r13-Nov-07 3:15 
AnswerRe: How to convert to C# code Pin
Anthony Mushrow13-Nov-07 3:54
professionalAnthony Mushrow13-Nov-07 3:54 
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")

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.