473,548 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create a windows user control for use in visio using vs2005

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

Jul 13 '06 #1
1 1708
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.Componen tModel
<ComClass(Point Control.ClassId , PointControl.In terfaceId,
PointControl.Ev entsId), ProgId("MyApp.C ontrol1")_
Public Class Control1
Inherits System.Windows. Forms.UserContr ol
#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_Lo ad(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
SetupControl()
End Sub
Public Sub New()
MyBase.New()
' This call is required by the Windows Form Designer.
InitializeCompo nent()
' Add any initialization after the InitializeCompo nent() call.

End Sub
End Class
"bsautner" wrote:
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
Jul 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1165
by: Velio Ivanov | last post by:
Hi there, I have an windows .net UserControl which is hosting Visio COM inside. The control have to be hosted in IE and in that way used on the clients' machine. So, my problem is that I got SecurityException because of control trying to reference the local Visio COM for which does't have permission.
0
1561
by: anonymous | last post by:
Hi all, I am using Visio drawing control (Visio automation object model) in my asp.net web page. I have a code which creates a DrawingControlClass object in my server code Microsoft.Office.Interop.VisOcx.DrawingControlClass dr=new Microsoft.Office.Interop.VisOcx.DrawingControlClass( ); i am using the drawing control to get access to the...
2
1426
by: Shahzad Godil | last post by:
I have successfully placed a seperate .Net windows control on my aspx page as well as one ActiveX Control (Visio control) on my aspx. But my orignal design is that Visio activex will be placed in my windows control. And then this windows control will be place in my aspx as "Client side" rich user interface control. It is giving blank...
2
3481
by: osmarjunior | last post by:
In VS2005 there is the class ToolStrip. If I open the CollectionEditor to edit the items of the tool bar, I can choose from a Label, Button, TextBox, ComboBox... I wanna create my own user control, when I have a collection like that (with differents items to add in). But how can I do this? With one single item I could do it, but with...
1
1998
by: Hans | last post by:
In developer studio 2003, I created a solution containing a C# windows app. I want to re-engeneer the app using Visio Professional 2003. How can I make visio create the structural diagram??? Hans.
4
1789
by: bill | last post by:
I have a Repeater control in a web user control. The web user control has a public method named PopulateRepeater which takes an ID as an parameter and populates the repeater control based on the parameter. When I call PopulateRepeater from the User Control page_load event it populates the repeater without a problem. When I call...
0
1109
by: AAJ | last post by:
Hi all I am a relatively experiences Windows/SQL Server database programmes and have just started on my first ever web app. I have managed with most of the simple stuff i.e. datagrids, crystal etc, but I am finding the security model confusing (actually I'm a bit confused over the event model and postbacks as well, but that's a different...
0
1119
by: John | last post by:
Apologies in advance if this is a daft question.................but, can anyone tell me broadly how to go about creating a "page" in a VB.NET windows app in a similar style to Word or Visio? Is there a control to be dropped onto a form or does it have to be drawn with GDI etc. I understand the Page object in say Visio, with its various...
9
1628
by: aaronluna | last post by:
Hi All, I was wondering if it is possible to easily convert an asp.net user control (.ascx) into an equivalent windows app. I plan on simply duplicating the user control in a c# windows app through brute force, but am becoming pressed for time with multiple deadlines. If there is an easier way than building the entire c# app from scratch,...
0
7444
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7805
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.