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
Solved

VB6 Wierdness

Posted on 2008-10-06
2
216 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
A macro to Count the number of rows across all worksheets 3 125
String manipulation in Visual Basic 7 73
vb6 connector to SQL Server 2 37
checkbox to hide entire section 10 41
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…

840 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