FolderBrowserDialog appears behind the active page

Cymnencoumn

New Member
I am using a web page in which the user was allowed to save the text files to the users local system.So I have used "FolderBrowserDialog" class to select the folder.It works fine and the folder can be selected... But the problem is the "FolderBrowserDialog" is not appearing above the active web page.We have to give alt-tab to bring the dialog... How to get the focus to the dialog box...Can anyone help me with this issuse, so that the dialog appears above the web page...The Code is as below:\[code\] var t = new Thread((ThreadStart)(() => { FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.RootFolder = System.Environment.SpecialFolder.MyComputer; fbd.ShowNewFolderButton = true; DialogResult dr = fbd.ShowDialog(); if (dr == DialogResult.OK) { selectedPath = fbd.SelectedPath; } })); t.SetApartmentState(ApartmentState.STA); t.Start(); t.Join();\[/code\]
 
Back
Top