Click here to Skip to main content
15,885,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Terminate C# app at system shutdown Pin
perlmunger16-Apr-03 6:56
perlmunger16-Apr-03 6:56 
GeneralRe: Terminate C# app at system shutdown Pin
Jon Newman16-Apr-03 6:31
Jon Newman16-Apr-03 6:31 
GeneralRe: Terminate C# app at system shutdown Pin
James T. Johnson16-Apr-03 7:12
James T. Johnson16-Apr-03 7:12 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:17
pahlsson16-Apr-03 7:17 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:21
pahlsson16-Apr-03 7:21 
QuestionDirectory Dialog Box?? Pin
bania15-Apr-03 15:17
bania15-Apr-03 15:17 
AnswerRe: Directory Dialog Box?? Pin
Chris Austin15-Apr-03 18:54
Chris Austin15-Apr-03 18:54 
AnswerRe: Directory Dialog Box?? Pin
chito15-Apr-03 22:09
chito15-Apr-03 22:09 
By using FolderNameEditor class and FolderBrowser class u can make Directory Dialog Box.

public class DirBrowser : FolderNameEditor
{
FolderBrowser fb = new FolderBrowser();
public string DirectoryPath
{
get
{
return strDirectoryPath;
}
}
public DirBrowser() { }
public DialogResult ShowDialog()
{
fb.Description = "Choose Directory";
fb.StartLocation = FolderBrowserFolder.MyComputer;
fb.Style = FolderBrowserStyles.RestrictToFilesystem;
DialogResult dlgResult = fb.ShowDialog();
if (dlgResult == DialogResult.OK)
strDirectoryPath = fb.DirectoryPath;
else
strDirectoryPath = "";

return dlgResult;
}
private string strDirectoryPath = "";

}

Instaniate DirBrowser class, call ShowDialog function and use DirectoryPath property to get the directory path :-

DirBrowser obDirBrowser = new DirBrowser();
obDirBrowser.ShowDialog ();
txtLogFilePath.Text = obDirBrowser.DirectoryPath ;

Chito.
AnswerRe: Directory Dialog Box?? Pin
Mazdak16-Apr-03 2:59
Mazdak16-Apr-03 2:59 
GeneralChange title bar color (or menu) Pin
mirano15-Apr-03 13:59
mirano15-Apr-03 13:59 
GeneralRe: Change title bar color (or menu) Pin
Chris Jobson15-Apr-03 23:06
Chris Jobson15-Apr-03 23:06 
GeneralRe: Change title bar color (or menu) Pin
mirano15-Apr-03 23:34
mirano15-Apr-03 23:34 
GeneralUnreachable Code Detected Pin
vinkoval15-Apr-03 12:43
vinkoval15-Apr-03 12:43 
GeneralRe: Unreachable Code Detected Pin
James T. Johnson15-Apr-03 13:27
James T. Johnson15-Apr-03 13:27 
GeneralRe: Unreachable Code Detected Pin
vinkoval15-Apr-03 18:52
vinkoval15-Apr-03 18:52 
GeneralRe: Unreachable Code Detected Pin
James T. Johnson15-Apr-03 19:01
James T. Johnson15-Apr-03 19:01 
GeneralSystem.Type usage Pin
S O S15-Apr-03 9:34
S O S15-Apr-03 9:34 
GeneralRe: System.Type usage Pin
Andres Manggini15-Apr-03 9:41
Andres Manggini15-Apr-03 9:41 
GeneralRe: System.Type usage Pin
S O S15-Apr-03 9:51
S O S15-Apr-03 9:51 
GeneralRe: System.Type usage Pin
James T. Johnson15-Apr-03 10:12
James T. Johnson15-Apr-03 10:12 
GeneralRe: System.Type usage Pin
leppie15-Apr-03 10:40
leppie15-Apr-03 10:40 
GeneralRe: System.Type usage Pin
James T. Johnson15-Apr-03 10:44
James T. Johnson15-Apr-03 10:44 
GeneralRe: System.Type usage Pin
S O S15-Apr-03 19:39
S O S15-Apr-03 19:39 
GeneralThis is sad Pin
RB@Emphasys15-Apr-03 7:32
RB@Emphasys15-Apr-03 7:32 
GeneralRe: This is sad Pin
Martin Cook15-Apr-03 7:45
professionalMartin Cook15-Apr-03 7:45 

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.