Solved

VB6 Wierdness

Posted on 2008-10-06
2
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

726 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