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

Opening a new form in an activex component

Status
Not open for further replies.

apan

MIS
Jan 7, 2003
1
SE
Hi,

I’ve tried to open a new form from an ActiveX component I use in IE. It works fine in VB6, but when I use it in VB6 I get the error: (something like) Cannot open a non-modal form in this application.

I have now tried to open a new window with the Win32 API function "ShowWindow” instead and that seems to work fine.

My questions are:
Is this a bad way of doing it, since VB will still think that the window is invisible?
Is there a way to open a new form the way I want to?

Thanks,

apan

 
It's limitation....................

doesn't any other task!
 
Did you open the form with the vbModal setting?

"Form".Show vbModal

I have found that this gets rid of that error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top