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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formless Common Dialog Box

Status
Not open for further replies.

cpaige

Programmer
Jun 19, 2000
86
CA
Does anyone know of a way to display a Common Dialog Box without having to create a form in the project? I wanted to display one before any form is displayed. Just wondering <p>Clayton T. Paige<br><a href=mailto:cpaige@home.com>cpaige@home.com</a><br><a href= Snail</a><br>Clayton T. Paige<br>
Programmer Extraordinaire <br>
========================================================<br>
"Who General Failure? and Why is he reading my disk drive?"
 
yeah.. look it up in the API, beleive it or not, the common dialog control is just an API call, and some other code!!!.. thats all tthe controlss seem to be<br><br>anways.. the open and save as dialogs are something like <br><br>getOpenFileName (open)<br>getSaveFileName (save, Save as)<br><br>i would almost prefer usign the API because u have alot more options too, read about teh structures used at <A HREF=" TARGET="_new">
 
Although you don't have to use the Common Dialog <i>Control </i> when creating a Common Dialog in a form module, it is the typical approach. The other approach is to create an 'instance' of the COM object in code. This can be done anwhere in a VB code moodule; thus,<br><br><br>Sub DoCommonDialog()<br><br>Dim con1 as object<br>set con1 = CreateObject(&quot;MSComDlg.CommonDialog.1&quot;)<br>' ...use the Common Dialog object, See the Common Dialog Reference.<br><br><br>&nbsp;set con1 = nothing<br><br>End Sub<br>done!<br><br> <p>Amiel<br><a href=mailto:amielzz@netscape.net>amielzz@netscape.net</a><br><a href= > </a><br>
 
Thanks!<br>That's kinda how I thought it would be done <p>Clayton T. Paige<br><a href=mailto:cpaige@home.com>cpaige@home.com</a><br><a href= Snail</a><br>Clayton T. Paige<br>
Programmer Extraordinaire <br>
========================================================<br>
"Who General Failure? and Why is he reading my disk drive?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top