Solved

VB6 Wierdness

Posted on 2008-10-06
2
210 Views
Last Modified: 2012-05-05
Experts,

There's a form in my VB6 project that launches the entire app when I try to open it in design time.  The only thing different about the form is that I just added the Microsoft Word doc tool to the form.  

What's going on?
0
Comment
Question by:NigelRocks
2 Comments
 
LVL 10

Assisted Solution

by:c0ldfyr3
c0ldfyr3 earned 150 total points
ID: 22654033
Why are you adding the control to the form? Try referencing it instead and creating it at runtime...
0
 
LVL 14

Accepted Solution

by:
rachitkohli earned 350 total points
ID: 22657261
Assuming you have added an OLE control. Do not select the application for it.Try creating it dynamically through code.

Remove, the value from the Class property of that control, then from the code try an access the file for an instance :
ole1.CreateEmbed "FILEPATH"
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Vb.net Listview 9 78
Problem to the message 13 63
Microsoft Access combo box help 2 29
VBA Shell can't Find Word document 11 43
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now