Click here to Skip to main content
15,899,475 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to browse folder Pin
trushitshah22-Feb-09 22:33
trushitshah22-Feb-09 22:33 
AnswerRe: How to browse folder Pin
Tom Deketelaere22-Feb-09 22:44
professionalTom Deketelaere22-Feb-09 22:44 
GeneralRe: How to browse folder Pin
trushitshah22-Feb-09 22:51
trushitshah22-Feb-09 22:51 
GeneralRe: How to browse folder Pin
Tom Deketelaere22-Feb-09 23:02
professionalTom Deketelaere22-Feb-09 23:02 
GeneralRe: How to browse folder Pin
trushitshah22-Feb-09 23:14
trushitshah22-Feb-09 23:14 
GeneralRe: How to browse folder Pin
Tom Deketelaere22-Feb-09 23:19
professionalTom Deketelaere22-Feb-09 23:19 
GeneralRe: How to browse folder Pin
trushitshah22-Feb-09 23:24
trushitshah22-Feb-09 23:24 
GeneralRe: How to browse folder Pin
Tom Deketelaere22-Feb-09 23:28
professionalTom Deketelaere22-Feb-09 23:28 
Where are you calling this code?

Is it in the load of a form, in the click event of a button, in a separate class, in a background worker class,...?

Try adding the STAThreadattribute to the main function (the new constructor of you startupform) like the error states.
I'v never encountered this error before so you might have to google it a bit.

If you are just calling this dialog after the click of the event try adding a folderbrowserdialog onto the form by dragging it out off the toolbox (like you would do with any other control) and using that one.
GeneralRe: How to browse folder Pin
trushitshah22-Feb-09 23:36
trushitshah22-Feb-09 23:36 
GeneralRe: How to browse folder Pin
Tom Deketelaere22-Feb-09 23:43
professionalTom Deketelaere22-Feb-09 23:43 
GeneralRe: How to browse folder Pin
trushitshah23-Feb-09 0:08
trushitshah23-Feb-09 0:08 
GeneralRe: How to browse folder Pin
Tom Deketelaere23-Feb-09 0:13
professionalTom Deketelaere23-Feb-09 0:13 
GeneralRe: How to browse folder Pin
trushitshah23-Feb-09 0:34
trushitshah23-Feb-09 0:34 
GeneralRe: How to browse folder Pin
EliottA23-Feb-09 3:07
EliottA23-Feb-09 3:07 
GeneralRe: How to browse folder Pin
JR21223-Feb-09 3:40
JR21223-Feb-09 3:40 
GeneralRe: How to browse folder Pin
Tom Deketelaere23-Feb-09 3:52
professionalTom Deketelaere23-Feb-09 3:52 
QuestionShortest Job First using VB6 [modified] Pin
ranier21ph22-Feb-09 21:57
ranier21ph22-Feb-09 21:57 
AnswerRe: Shortest Job First using VB6 Pin
Andy_L_J22-Feb-09 22:24
Andy_L_J22-Feb-09 22:24 
AnswerRe: Shortest Job First using VB6 Pin
CPallini23-Feb-09 2:53
mveCPallini23-Feb-09 2:53 
AnswerRe: Shortest Job First using VB6 Pin
Dave Kreskowiak23-Feb-09 4:10
mveDave Kreskowiak23-Feb-09 4:10 
QuestionModule in multiple projects Pin
brucescheide22-Feb-09 20:17
brucescheide22-Feb-09 20:17 
AnswerRe: Module in multiple projects Pin
Gideon Engelberth23-Feb-09 3:32
Gideon Engelberth23-Feb-09 3:32 
QuestionSession End [modified] Pin
rajmca.g22-Feb-09 19:08
rajmca.g22-Feb-09 19:08 
AnswerRe: Session End Pin
DaveAuld22-Feb-09 20:40
professionalDaveAuld22-Feb-09 20:40 
AnswerRe: Session End Pin
Christian Graus22-Feb-09 21:31
protectorChristian Graus22-Feb-09 21:31 

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.