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

VB3 Print Dialog Box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When I input CMDialog.* commands I get an error I get an "Element not defined" error. What am I doing wrong? Thanks.
 
Hi Billy_ray,

I do not remember exactly how vb3 works, but I do believe that errors encountered in VB6 are similar. I normally get the you encountered when I use a control in a form other than the form where the control is referenced.

If CMGDialog (a common dialog control) is on Form1 and you write a line of code in form2 with "CMGDialog" without first a referencing form1 you will get this error. In this such a case do the following:

form1.CMGDialog.*


You may also get this error if no common dialog control exists in your program or form.

Hope this helps you,

Cooleen
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top