Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem in FolderBrowserDialog Pin
sudhi16427-Feb-09 2:01
sudhi16427-Feb-09 2:01 
AnswerRe: Problem in FolderBrowserDialog Pin
musefan27-Feb-09 2:04
musefan27-Feb-09 2:04 
GeneralRe: Problem in FolderBrowserDialog Pin
sudhi16427-Feb-09 2:38
sudhi16427-Feb-09 2:38 
Questionconvert word to jpeg Pin
yesu prakash27-Feb-09 0:24
yesu prakash27-Feb-09 0:24 
AnswerRe: convert word to jpeg Pin
Calin Tatar27-Feb-09 0:54
Calin Tatar27-Feb-09 0:54 
GeneralRe: convert word to jpeg Pin
yesu prakash27-Feb-09 1:29
yesu prakash27-Feb-09 1:29 
GeneralRe: convert word to jpeg Pin
Calin Tatar27-Feb-09 1:34
Calin Tatar27-Feb-09 1:34 
QuestionHow to get the application data folder for each user ? Pin
Member 395385627-Feb-09 0:16
Member 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
Alan N27-Feb-09 0:54 
AnswerRe: How to get the application data folder for each user ? Pin
Member 395385627-Feb-09 0:57
Member 395385627-Feb-09 0:57 
AnswerRe: How to get the application data folder for each user ? Pin
PIEBALDconsult27-Feb-09 4:31
mvePIEBALDconsult27-Feb-09 4:31 
QuestionHow to pass button and form in a method ? Pin
soulidentities27-Feb-09 0:04
soulidentities27-Feb-09 0:04 
AnswerRe: How to pass button and form in a method ? Pin
musefan27-Feb-09 0:12
musefan27-Feb-09 0:12 
GeneralRe: How to pass button and form in a method ? Pin
soulidentities27-Feb-09 3:21
soulidentities27-Feb-09 3:21 
Answer[Message Deleted] Pin
Prajeesh27-Feb-09 0:29
Prajeesh27-Feb-09 0:29 
Rantyou mean you with u Pin
Deresen27-Feb-09 0:51
Deresen27-Feb-09 0:51 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:06
soulidentities27-Feb-09 3:06 
GeneralRe: you mean you with u Pin
Deresen27-Feb-09 3:15
Deresen27-Feb-09 3:15 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:28
soulidentities27-Feb-09 3:28 
GeneralRe: you mean you with u Pin
Deresen27-Feb-09 3:52
Deresen27-Feb-09 3:52 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:58
soulidentities27-Feb-09 3:58 
GeneralRe: you mean you with u [modified] Pin
Mirko198027-Feb-09 3:52
Mirko198027-Feb-09 3:52 
GeneralRe: you mean you with u Pin
soulidentities27-Feb-09 3:59
soulidentities27-Feb-09 3:59 
AnswerRe: How to pass button and form in a method ? Pin
Megidolaon27-Feb-09 1:06
Megidolaon27-Feb-09 1:06 
Questiontracking the eye algorithm Pin
sanforjackass26-Feb-09 23:49
sanforjackass26-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.