adding User Control in visio 2003

D

David

i'm working on an add-in of visio 2003 in VB2008. i want to add some
controls. after searching the internet i realized that i can build a
User Control (right click on the project's name and then Add->User
Control) by the graphical controls on the left side of the screen. it
seems much more comfortable than creating the whole task pane with
code only. the problem is that what i saw worked only for the add-in
of Excel 2007 (by using the command Me.CustomTaskPanes.Add(New
UserControl1(),""))
unfortunatelly the add-in of visio 2003 doesn't even know the field
CustomTaskPanes.

is there any way to add the graphical UserControl to visio 2003?
maybe there's a different command which gets a parameter of type
Control? (i didn't find one)

hope anyone can help

thanks in advance
David
 
B

Barb Way

I searched for Custom Task Panes on MSDN, and found these topics:
http://msdn.microsoft.com/en-us/library/aa942864.aspx
http://msdn.microsoft.com/en-us/library/aa942846(VS.80).aspx

Essentially, there isn't any support in Visio, yet, for the CustomTaskPanes
objects.

Barb Way
Product Support - Visio
Microsoft Corporation
[This posting is provided "As Is" with no warranties, and confers no
rights.]
--------------------

i'm working on an add-in of visio 2003 in VB2008. i want to add some
controls. after searching the internet i realized that i can build a
User Control (right click on the project's name and then Add->User
Control) by the graphical controls on the left side of the screen. it
seems much more comfortable than creating the whole task pane with
code only. the problem is that what i saw worked only for the add-in
of Excel 2007 (by using the command Me.CustomTaskPanes.Add(New
UserControl1(),""))
unfortunatelly the add-in of visio 2003 doesn't even know the field
CustomTaskPanes.

is there any way to add the graphical UserControl to visio 2003?
maybe there's a different command which gets a parameter of type
Control? (i didn't find one)

hope anyone can help

thanks in advance
David
 

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