Defining the start position for a dialog box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am looking for a way to define the starting position for a common dialog box in C#, specifically for an instance of the class FolderBrowserDialog. I can't find a way to do this with managed code and I haven't had any luck with an unmanaged code solution either. I would appreciate help in implementing either one of these methods

Thanks for your help
Jeannie
 
I don't think there is a way to do that in managed code.

Jeannie said:
Hi,

I am looking for a way to define the starting position for a common dialog
box in C#, specifically for an instance of the class FolderBrowserDialog. I
can't find a way to do this with managed code and I haven't had any luck
with an unmanaged code solution either. I would appreciate help in
implementing either one of these methods.
 
Can you not set StartPosition to "manual" and then assign Location to
wherever you want.... I haven't tried it but I guess your
FolderBrowserDialog must be inherited from Form and hence the above
properties must be available.

--Saurabh

Jeannie said:
Hi,

I am looking for a way to define the starting position for a common dialog
box in C#, specifically for an instance of the class FolderBrowserDialog. I
can't find a way to do this with managed code and I haven't had any luck
with an unmanaged code solution either. I would appreciate help in
implementing either one of these methods.
 
CommonDialog is derived from Component, not Form, so there is no
StartPosition or Location.
 
Back
Top