Click here to Skip to main content
15,034,986 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem in FolderBrowserDialog Pin
sudhi16427-Feb-09 2:01
Membersudhi16427-Feb-09 2:01 
AnswerRe: Problem in FolderBrowserDialog Pin
musefan27-Feb-09 2:04
Membermusefan27-Feb-09 2:04 
GeneralRe: Problem in FolderBrowserDialog Pin
sudhi16427-Feb-09 2:38
Membersudhi16427-Feb-09 2:38 
Questionconvert word to jpeg Pin
yesu prakash27-Feb-09 0:24
Memberyesu prakash27-Feb-09 0:24 
AnswerRe: convert word to jpeg Pin
Calin Tatar27-Feb-09 0:54
MemberCalin Tatar27-Feb-09 0:54 
GeneralRe: convert word to jpeg Pin
yesu prakash27-Feb-09 1:29
Memberyesu prakash27-Feb-09 1:29 
GeneralRe: convert word to jpeg Pin
Calin Tatar27-Feb-09 1:34
MemberCalin Tatar27-Feb-09 1:34 
QuestionHow to get the application data folder for each user ? Pin
Member 395385627-Feb-09 0:16
MemberMember 395385627-Feb-09 0:16 
Hi I am writing a small program , I need to find the application data folder which exists in c:\documents and settings folder. I need to know the exact path, if the user has installed the windows in d:\ then it should look at d:\. Even if I could know the windows installation drive then I think it would help ? I got some code in VB but i cannot use it in csharp . Any suggestions would be appreciated.

//************************************************************
Public Function GetTheWindowsDirectory() As String

Dim strWindowsDir As String ' Variable to return the path of Windows Directory
Dim lngWindowsDirLength As Long ' Variable to return the the lenght of the path

strWindowsDir = Space(250) ' Initilize the buffer to receive the string
lngWindowsDirLength = GetWindowsDirectory(strWindowsDir, 250) ' Read the path of 'the windows directory
strWindowsDir = Left(strWindowsDir, lngWindowsDirLength) ' Extract the windows 'path from the buffer

GetTheWindowsDirectory = strWindowsDir

//*********************************************

The above is the code for vb.net

Thanks
AnswerRe: How to get the application data folder for each user ? Pin
Alan N27-Feb-09 0:54
MemberAlan N27-Feb-09 0:54 
AnswerRe: How to get the application data folder for each user ? Pin
Member 395385627-Feb-09 0:57
MemberMember 395385627-Feb-09 0:57 
AnswerRe: How to get the application data folder for each user ? Pin
PIEBALDconsult27-Feb-09 4:31
professionalPIEBALDconsult27-Feb-09 4:31 
QuestionHow to pass button and form in a method ? Pin
soulidentities27-Feb-09 0:04
Membersoulidentities27-Feb-09 0:04 
AnswerRe: How to pass button and form in a method ? Pin
musefan27-Feb-09 0:12
Membermusefan27-Feb-09 0:12 
GeneralRe: How to pass button and form in a method ? Pin
soulidentities27-Feb-09 3:21
Membersoulidentities27-Feb-09 3:21 
Answer[Message Deleted] Pin
Prajeesh27-Feb-09 0:29
MemberPrajeesh27-Feb-09 0:29 
Rantyou mean you with u Pin
Deresen27-Feb-09 0:51
MemberDeresen27-Feb-09 0:51 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:06
Membersoulidentities27-Feb-09 3:06 
GeneralRe: you mean you with u Pin
Deresen27-Feb-09 3:15
MemberDeresen27-Feb-09 3:15 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:28
Membersoulidentities27-Feb-09 3:28 
GeneralRe: you mean you with u Pin
Deresen27-Feb-09 3:52
MemberDeresen27-Feb-09 3:52 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:58
Membersoulidentities27-Feb-09 3:58 
GeneralRe: you mean you with u [modified] Pin
Mirko198027-Feb-09 3:52
MemberMirko198027-Feb-09 3:52 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:59
Membersoulidentities27-Feb-09 3:59 
AnswerRe: How to pass button and form in a method ? Pin
Megidolaon27-Feb-09 1:06
MemberMegidolaon27-Feb-09 1:06 
Questiontracking the eye algorithm Pin
sanforjackass26-Feb-09 23:49
Membersanforjackass26-Feb-09 23:49 

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.