Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positionning CommonDialog on a MDI form. 1

Status
Not open for further replies.

Ologhai

Programmer
Apr 11, 2000
42
CA
Hi all,

How can I set the position of the CommonDialog box when I open it ??

With CommonDialog
.Flags = cdlOFNHideReadOnly
.Filter = "*.mdb"
.InitDir = wPath
.FileName = wFile
.DialogTitle = "Ouverture"
.Action = 1
end with

the CommonDialog always appear in the top left of the screen
i wanna positionning this CommonDialog in center of form

thanks to help me. ___________________________
Hugues Gauthier
Programmeur Analyste
Progitech
---------------------------
hugues_gauthier@hotmail.com
 
Controlling Common Dialog Location

Add 1 Picture Box to your form. To make the Picture Box invisible set its
BorderStyle property to 0-None. Place the Common Dialog Control In the Picture Box.
when you will launch the Common Dialog, it will be displayed so its upper left corner
will be where is the picture Box upper left corner.

Eric De Decker
vbg.be@vbgroup.nl

License And Copy Protection AxtiveX.

Download Demo version on my Site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top