Drawing Control in VB.NET

V

Vic Spainhower

I don't know if this post should be here or in the .net languages forum but I'll start here. The problem is I am trying to use the ActiveX control in a vb.net program and I have a form that includes this control .. The problem is that when the form initializes it starts Visio duing the initialize component module when it hits
Public vsoApp As New Microsoft.Office.Interop.Visio.Application.

How do I disable this because the user interface is the vb.net windows form. This program is being converted from VB6 and this does not happen in VB6.



Vic
 
M

Mark Nelson [MS]

I'm not sure whether the issue is that Visio launches or that you see Visio launch. You can instantiate the InvisibleApp object in Visio rather than the Application object to launch Visio with showing any UI.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

I don't know if this post should be here or in the .net languages forum but I'll start here. The problem is I am trying to use the ActiveX control in a vb.net program and I have a form that includes this control .. The problem is that when the form initializes it starts Visio duing the initialize component module when it hits
Public vsoApp As New Microsoft.Office.Interop.Visio.Application.

How do I disable this because the user interface is the vb.net windows form. This program is being converted from VB6 and this does not happen in VB6.



Vic
 
C

Chris Roth [ Visio MVP ]

You should get the application from the control.

Public vsoApp as Visio.Applicatons

....start form, Visio AX loads...

vsoApp = VisAX.Drawing.Application

--

Hope this helps,

Chris Roth
Visio MVP


I don't know if this post should be here or in the .net languages forum but I'll start here. The problem is I am trying to use the ActiveX control in a vb.net program and I have a form that includes this control .. The problem is that when the form initializes it starts Visio duing the initialize component module when it hits
Public vsoApp As New Microsoft.Office.Interop.Visio.Application.

How do I disable this because the user interface is the vb.net windows form. This program is being converted from VB6 and this does not happen in VB6.



Vic
 
V

Vic Spainhower

Thanks Mark and Chris for the answers!

Mark you were right on, I changed the public dimension statement as follows
and it no longer launches Visio.

Public vsoApp As New Microsoft.Office.Interop.Visio.InvisibleApp

Vic

I don't know if this post should be here or in the .net languages forum but
I'll start here. The problem is I am trying to use the ActiveX control in a
vb.net program and I have a form that includes this control . The problem is
that when the form initializes it starts Visio duing the initialize
component module when it hits
Public vsoApp As New Microsoft.Office.Interop.Visio.Application.
How do I disable this because the user interface is the vb.net windows form.
This program is being converted from VB6 and this does not happen in VB6.

Vic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top