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

VB6+UserControl+Vista

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
0
0
GB
In Vista + VB6

I created a simplest UserControl with only Command1 on it
I then added a Standard EXE project and put the UserControl onto Form1 for testing. There a only one Sub in the standard project:
Private Sub Form_Load()
Debug.Print "aaaaaaaaaaaaaaa"
End Sub


When I run the standard project, I found it not worked:
Form1 wont be displayed and nothing was printed in the immediated window,
or a IE browser opened and the UserControl was on it! (see note below)

What I was doing wrong?

Any suggestion will be most appreciated.

Note:

There is a setting for the UserControl project: Project -> Project1 Properties -> Debugging -> When this project starts -> 4 options:
Wait for components to be created
Start component: userControl1
Startprogram ...
Start browser with URL
If I select "Wait for components to be created", when run the standard project, nothing displayed
If I select "Start component: userControl1", the IE browser opened and the UserControl will be displayed on the IE browser
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top