Initial position of Openfiledialog

  • Thread starter Finn Stampe Mikkelsen
  • Start date
F

Finn Stampe Mikkelsen

Is there any way to set the initial position of the openfiledialog?? (Like
for forms..)

/Finn
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary and those who
don't.
Es gibt 10 Arten von Menschen. Die, die Binär verstehen, bzw. die, die es
nicht tuhen.
 
C

Chris

Is there any way to set the initial position of the openfiledialog?? (Like
for forms..)

/Finn
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary and those who
don't.
Es gibt 10 Arten von Menschen. Die, die Binär verstehen, bzw. die, diees
nicht tuhen.

What do you mean when you say "initial position"? Do you mean the
location on the screen? Or are you referring to the initial folder
that is displayed?

If you mean the position on the screen, look at the various overloads
for the ShowDialog method. You can pass in a parent window (i. e.
Form) to help control positioning. If you mean the initial folder,
look at the InitialDirectory property.

Chris
 
F

Finn Stampe Mikkelsen

"Chris" <[email protected]> skrev i meddelelsen
Is there any way to set the initial position of the openfiledialog?? (Like
for forms..)

/Finn
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary and those who
don't.
Es gibt 10 Arten von Menschen. Die, die Binär verstehen, bzw. die, die es
nicht tuhen.
What do you mean when you say "initial position"? Do you mean the
location on the screen? Or are you referring to the initial folder
that is displayed?

I was looking for the screen position. A property like StartLocation for
forms. Wondering why thay have omitted that for those dialogs, thus creating
the need to do overloads if i would like to implement CenterParent or
similar..

Thanks anyway. I will look for some overloads

/Finn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top