create a windows user control for use in visio using vs2005

G

Guest

Hi, spent a while trying to figure this out myself and i seem to be missing
something.

I want to create a windows user control in vb.net 8 that i can then use in
office applications like powerpoint or visio. So in VS 2005 i create a new
project and select "Windows Control" create my dll and it's functionality.
I'd like to then launch visio and select "INSERT" then CONTROLS and select my
new control from the list provided (cannot browse from here so this is a list
of registered controls). I tried buidling setup/deploy packages, adding my
dll to the GAC, and toying with the registery to no avail.

Thanks!
Ben
 
G

Guest

update -

tried adding a component class, using regasm still no luck. Here is some
code that dosn't work - you can see attempts at creating a com object. How
the heck do you get windows to recongnise this like it does an activeX
control? I can load this dll into a windows form project no problem:

Imports System.Runtime.InteropServices
Imports System.ComponentModel
<ComClass(PointControl.ClassId, PointControl.InterfaceId,
PointControl.EventsId), ProgId("MyApp.Control1")> _
Public Class Control1
Inherits System.Windows.Forms.UserControl
#Region "COM GUIDs"
' These GUIDs provide the COM identity for this class
' and its COM interfaces. If you change them, existing
' clients will no longer be able to access the class.
Public Const ClassId As String = "713f16ae-f0ba-414b-be97-67169369d4a1"
Public Const InterfaceId As String =
"20c7ad54-a6ba-47a9-b893-a745f2b23efa"
Public Const EventsId As String = "79479ebc-31c5-46a8-b758-ff1f6eea700a"
#End Region



Public Sub UserControl1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
SetupControl()
End Sub


Public Sub New()
MyBase.New()
' This call is required by the Windows Form Designer.
InitializeComponent()


' Add any initialization after the InitializeComponent() call.

End Sub
End Class
 

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