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

ActiveX Forms

Status
Not open for further replies.

ssj3gohan

Programmer
Jun 2, 2003
34
AU
How do i get an acitveX dll to diaplay a form when a function is called? i am using the follownig code:

frmAbout.show

but the program seems to ignore the line and continues on.

Thanks for the help.
 
If you want it to show the form and have it keep focus until the user makes it go away, then use:

frmAbout.show vbModal

otherwise, the form gets displayed (it may be behind the current window) and execution continues in the main routine.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
thanks, but it just doesnt work, i tried it already.

let me clarify,
the code is something like:

msgbox "hello"
call Encode()
frmabout.show
msgbox "About Shown"

the dll will popup "Hello" and call encode, but the popup "About Show" never turns up, so i am assuming that the about form is never shown, as i also cannot see it.
 
Can you post the form code and as much of the dll code that calls it as needed to see what's going on?

thx.

"I think we're all Bozos on this bus!" - Firesign Theatre [jester]
 
You may need to set the parent hWnd for your form. This involves an API call that I think has been posted here before. Strongm probably knows it.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top