Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Popup Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup Control

 Post Reply Post Reply
Author
Message
markp.uk View Drop Down
Groupie
Groupie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote markp.uk Quote  Post ReplyReply Direct Link To This Post Topic: Popup Control
    Posted: 24 August 2008 at 2:28pm
Can anyone tell me how to create a popup control without using a form, i want to use it as a splash screen during loadup, so want to create it from module not from a form with ocx

Cheers.
The weekend has landed.....

Long live the weekend!!!





Product: Xtreme SuitePro

(ActiveX) version 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2008 at 1:52am
Try
 
Dim p
Private Sub PushButton1_Click()
Set p = CreateObject("Codejock.PopupControl." & XtremeSuiteControls.Version)
p.Show
End Sub
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
markp.uk View Drop Down
Groupie
Groupie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote markp.uk Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2008 at 3:25am
Cheers Oleg,

The popup is created fine, but does not seem to appear unless there is a break in the code, if not the popup is not displayed until after the main form is loaded; any ideas would be appreciated.
The weekend has landed.....

Long live the weekend!!!





Product: Xtreme SuitePro

(ActiveX) version 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 25 August 2008 at 4:29am

Hi,

If you put the code in the form load event, object will be destroyed when form load event is done. This is what you want, right?
 
Call DoEvents will solve your problem. Maybe you need to call DoEvents several times. Depends what's called inside every function.
 
 
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.