Click here to Skip to main content
15,880,392 members
Home / Discussions / C#
   

C#

 
Generalaxwebbrowser event not working on other machines Pin
Green Fuze9-Jun-05 3:03
Green Fuze9-Jun-05 3:03 
Questionjava script security? Pin
hassan azizi9-Jun-05 2:59
hassan azizi9-Jun-05 2:59 
Question200 files limited prolem with OpenFileDialog? Pin
Khoa Bui9-Jun-05 2:51
Khoa Bui9-Jun-05 2:51 
AnswerRe: 200 files limited prolem with OpenFileDialog? Pin
Dave Kreskowiak9-Jun-05 8:02
mveDave Kreskowiak9-Jun-05 8:02 
GeneralHow can I design my own OpenFileDialog? Pin
Khoa Bui11-Jun-05 17:26
Khoa Bui11-Jun-05 17:26 
GeneralRe: How can I design my own OpenFileDialog? Pin
Dave Kreskowiak12-Jun-05 4:06
mveDave Kreskowiak12-Jun-05 4:06 
Generaldrag a picturebox Pin
Anonymous9-Jun-05 1:34
Anonymous9-Jun-05 1:34 
GeneralSelectedPath() not working in FolderBrowserDialog Pin
Anonymous9-Jun-05 1:27
Anonymous9-Jun-05 1:27 
I have the following code:
//Create an FolderBrowserDialog
FolderBrowserDialog folderDlg = new FolderBrowserDialog();
folderDlg.RootFolder = Environment.SpecialFolder.MyComputer;
folderDlg.ShowNewFolderButton = false;
folderDlg.Description = "Select the folder"; 
folderDlg.SelectedPath = strPath;//which is defined earlier and is checked to be a valid path
			
DialogResult result = folderDlg.ShowDialog();
if( result == DialogResult.OK )
{
   //some code here
}

However, when the FolderBrowserDialog is shown, the initial folder is not set even though SelectedPath property is used as above. Similar experience is noticed by me in some other code on similar occasions as well. In fact, in this situation, there is some other abnormality as the OK button is shown enabled for My Computer folder also which is not so when this property is not set. On the other hand, if I set the SelectedPath property as something like @"C:\Program Files\", then it is correctly shown.

What can be the reason? Am I missing something?
GeneralRe: SelectedPath() not working in FolderBrowserDialog Pin
Robert Rohde12-Jun-05 4:19
Robert Rohde12-Jun-05 4:19 
Generalquestion in using matlab dll in c# Pin
hediii9-Jun-05 1:22
hediii9-Jun-05 1:22 
Generalclean viruse in c# Pin
computer_eng9-Jun-05 1:13
computer_eng9-Jun-05 1:13 
Generalclean viruse in c# Pin
computer_eng9-Jun-05 1:12
computer_eng9-Jun-05 1:12 
GeneralRe: clean viruse in c# Pin
Dave Kreskowiak9-Jun-05 6:52
mveDave Kreskowiak9-Jun-05 6:52 
Generalrawsocket Pin
computer_eng9-Jun-05 1:07
computer_eng9-Jun-05 1:07 
GeneralRe: rawsocket Pin
Dave Kreskowiak9-Jun-05 6:49
mveDave Kreskowiak9-Jun-05 6:49 
Question.net framework required or not/do com interopt.? Pin
montu33779-Jun-05 0:57
montu33779-Jun-05 0:57 
AnswerRe: .net framework required or not/do com interopt.? Pin
Michael P Butler9-Jun-05 1:34
Michael P Butler9-Jun-05 1:34 
GeneralRe: .net framework required or not/do com interopt.? Pin
montu33779-Jun-05 1:39
montu33779-Jun-05 1:39 
GeneralRe: .net framework required or not/do com interopt.? Pin
Michael P Butler9-Jun-05 2:17
Michael P Butler9-Jun-05 2:17 
GeneralWeb Service shared class definition Pin
chilberto9-Jun-05 0:53
chilberto9-Jun-05 0:53 
GeneralRe: Web Service shared class definition Pin
NassosReyzidis14-Jun-05 1:27
NassosReyzidis14-Jun-05 1:27 
Generalaccessing HID + c# Pin
g00fyman8-Jun-05 23:54
g00fyman8-Jun-05 23:54 
GeneralRe: accessing HID + c# Pin
Dave Kreskowiak9-Jun-05 6:45
mveDave Kreskowiak9-Jun-05 6:45 
GeneralRe: accessing HID + c# Pin
g00fyman9-Jun-05 18:54
g00fyman9-Jun-05 18:54 
GeneralRe: accessing HID + c# Pin
Dave Kreskowiak10-Jun-05 1:29
mveDave Kreskowiak10-Jun-05 1:29 

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.