473,800 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sharing a C#User Control

Tom
I have created a C# User Control which house my header
information.

I have another development group that would like to use
this but they are VB developers.

Is their a way to leverage my C# User Control in a VB.NET
application?

If so can you please provide me with instructions.

Thanks

Tom

Nov 15 '05 #1
5 3521
Put the control in a separate assembly, compile, and give the VB guys your
assembly. All they need to do is add it to their toolbox in VS.NET and off
they go! I would also suggest strong naming your assembly and manually
setting its version in AssemblyInfo...

Jeff

"Tom" <da*****@fhlbci n.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I have created a C# User Control which house my header
information.

I have another development group that would like to use
this but they are VB developers.

Is their a way to leverage my C# User Control in a VB.NET
application?

If so can you please provide me with instructions.

Thanks

Tom

Nov 15 '05 #2
Tom
Jeff:

Got a few questions. I understand about setting the
version number. But what do you mean when you say:
1. strong naming my assembly?
2. Put the control in a separate assembly. Do you mean a
seprate project. If so what type?
3. Give your vb guys the assembly. Which file?

Sorry but I'm new to this. Any help would be appreciated.

Tom
-----Original Message-----
Put the control in a separate assembly, compile, and give the VB guys yourassembly. All they need to do is add it to their toolbox in VS.NET and offthey go! I would also suggest strong naming your assembly and manuallysetting its version in AssemblyInfo...

Jeff

"Tom" <da*****@fhlbci n.com> wrote in message
news:00******* *************** ******@phx.gbl. ..
I have created a C# User Control which house my header
information.

I have another development group that would like to use
this but they are VB developers.

Is their a way to leverage my C# User Control in a VB.NET application?

If so can you please provide me with instructions.

Thanks

Tom

.

Nov 15 '05 #3

"Tom" <da*****@fhlbci n.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
Jeff:

Got a few questions. I understand about setting the
version number. But what do you mean when you say:
1. strong naming my assembly? Means it has a name, version, culture, and a public key. These are
generally set in AssemblyInfo.cs .

For creating the public key, use sn.exe provided in Program
Files\Microsoft Visual Studio .NET\FrameworkS DK\bin

Once all of these 4 things are specified, you can have your Assembly
(.dll or .exe) added to the global assembly cache of any / all
machines.
2. Put the control in a separate assembly. Do you mean a
seprate project. If so what type? A "class library project" would make the most sense. Put that one
control (or any other releated controls / classes) in there. The
output of a class library project is a .NET dll (an assembly)
3. Give your vb guys the assembly. Which file?

The .dll created by the above project. Note, this is not a standard
windows dll, but rather a .NET assembly. Your vb guys either copy the
dll local to their project and do project | add references | pick your
dll.
Nov 15 '05 #4
Tom
Jeff:

I'm still a little confused.
OK I follow what you are saying. But my header control
contains an image and some D/Html code for the naviagation
menus.

If I create a C# Class Library project, add my control to
this new project, compile it. Then in my VB app make a
reference to this new project, how do I get the image to
appear?

Tom
-----Original Message-----

"Tom" <da*****@fhlbci n.com> wrote in message
news:00******* *************** ******@phx.gbl. ..
Jeff:

Got a few questions. I understand about setting the
version number. But what do you mean when you say:
1. strong naming my assembly?Means it has a name, version, culture, and a public key.

These aregenerally set in AssemblyInfo.cs .

For creating the public key, use sn.exe provided in ProgramFiles\Microsof t Visual Studio .NET\FrameworkS DK\bin

Once all of these 4 things are specified, you can have your Assembly(.dll or .exe) added to the global assembly cache of any / allmachines.
2. Put the control in a separate assembly. Do you mean a seprate project. If so what type?A "class library project" would make the most sense. Put

that onecontrol (or any other releated controls / classes) in there. Theoutput of a class library project is a .NET dll (an assembly)
3. Give your vb guys the assembly. Which file?The .dll created by the above project. Note, this is not

a standardwindows dll, but rather a .NET assembly. Your vb guys either copy thedll local to their project and do project | add references | pick yourdll.
.

Nov 15 '05 #5

Hi Tom,

Are you still monitoring this post?
I will get this post some research and give you some suggestion.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Tom" <da*****@fhlbci n.com>
| Sender: "Tom" <da*****@fhlbci n.com>
| References: <00************ *************** *@phx.gbl>
<e$************ **@TK2MSFTNGP10 .phx.gbl>
<00************ *************** *@phx.gbl>
<e7************ **@TK2MSFTNGP10 .phx.gbl>
| Subject: Re: Sharing a C#User Control
| Date: Tue, 5 Aug 2003 05:04:46 -0700
| Lines: 59
| Message-ID: <8b************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNbScNUPLEmDE2 VQlG+5DDP1cklsg ==
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Path: cpmsftngxa06.ph x.gbl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1742 49
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Jeff:
|
| I'm still a little confused.
| OK I follow what you are saying. But my header control
| contains an image and some D/Html code for the naviagation
| menus.
|
| If I create a C# Class Library project, add my control to
| this new project, compile it. Then in my VB app make a
| reference to this new project, how do I get the image to
| appear?
|
| Tom
|
| >-----Original Message-----
| >
| >"Tom" <da*****@fhlbci n.com> wrote in message
| >news:00******* *************** ******@phx.gbl. ..
| >Jeff:
| >
| >Got a few questions. I understand about setting the
| >version number. But what do you mean when you say:
| >> 1. strong naming my assembly?
| >Means it has a name, version, culture, and a public key.
| These are
| >generally set in AssemblyInfo.cs .
| >
| >For creating the public key, use sn.exe provided in
| Program
| >Files\Microsof t Visual Studio .NET\FrameworkS DK\bin
| >
| >Once all of these 4 things are specified, you can have
| your Assembly
| >(.dll or .exe) added to the global assembly cache of
| any / all
| >machines.
| >
| >> 2. Put the control in a separate assembly. Do you mean
| a
| >> seprate project. If so what type?
| >A "class library project" would make the most sense. Put
| that one
| >control (or any other releated controls / classes) in
| there. The
| >output of a class library project is a .NET dll (an
| assembly)
| >
| >> 3. Give your vb guys the assembly. Which file?
| >The .dll created by the above project. Note, this is not
| a standard
| >windows dll, but rather a .NET assembly. Your vb guys
| either copy the
| >dll local to their project and do project | add
| references | pick your
| >dll.
| >
| >
| >.
| >
|

Nov 15 '05 #6

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

Similar topics

3
1375
by: brynja | last post by:
Hi .. I´m using web user control on my project group. Now i´m using web user control for each project and it works fine, but now I want to share some controls for various project and I dont know how? I have created a folder beside all my project and put one control there. I know how to go up one folder with the "~/" tag but how can I go up two folders? I´ve tried ~/~/, ~/../, ../~/ but I cant make it work.
2
1082
by: Ajeet YS | last post by:
Hello, We need to share the same user controls among many developers in the same project. How do we achieve this? We have looked into using Custom controls, but they have a very high development time & at times can be complicated. How can we have a set of user controls, say in a separate project, and make use of it from there instead of copying the controls to each individuals project & then using it? We are VS.NET 2003 if its of any...
7
1632
by: Mantorok | last post by:
Hi all We have an ASP.Net project (and the Solution) under source-control. Here is the example - I create the Solution, I create an ASP.Net project and then check it all in to source control, now, when another user pulls down the solution/project from source and then tries to open it the Solution says it can't find the project. The temporary solution we have so far which is far from convenient is to
1
1513
by: Joe | last post by:
While I understand that Server Side Includes still work, I realize it's not the best practice for sharing code such as a common set of includes between screens. In ASP.NET I've already built several User Controls and such for sharing code between screens, but this typically was used things such as menus and headers and footers. What is the best practice in 1.1 for sharing code such as a common set of functions used by multiple screens?
8
4853
by: mc | last post by:
I would like to be able to send from an ASP.NET page an email which when recieved takes the form of a "Sharing Invitation for a RSS Feed" (http://office.microsoft.com/en-us/outlook/HA101595391033.aspx) I've found a MSDN article about it (http://msdn2.microsoft.com/en-us/library/bb176432.aspx) but that example is presented as a vb(a) script from within outlook. Can this functionality be emulated from sending an email from C#? TIA
11
4706
by: Max Vit | last post by:
I have deployed few Access apps splitting it in Front End and Back End. Our environment uses Win XP SP2 for clients, Win 2k3 for servers and Access 2003. The max. number of clients is about 50 (concurrent users is estimated around 10). Whilst the Back End always lives on a server, I am not quite clear where the Front End should live. I have searched the web and find contradicting views.
0
1481
by: ARC | last post by:
Hello all, This is really a computer sharing / network question, so sorry for posting here; it's the only newsgroup I post in. I have a customer with a database file on a vista machine under Users\\, who has a 2nd pc with window xp. They're getting all kinds of access errors relating to the .mdb being read-only, etc., when they try to access the database from the xp machine. Using remote control, I turned on sharing for that folder...
11
3624
by: limperger | last post by:
Hello everybody! I have just found out that the sharing properties of a single database (mdb file on a network), accessed by 3 users, change depending on the user accessing the database. That is, with the file opened by 2 users at the same time, in my computer, the sharing properties appeared as set to share (not exclusive) and single entry-lock. Nevertheless, in the computer of the other user, the sharing properties are set to exclusive mode...
5
1932
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post by:
Hi, I have a user control which I like to use in several projects (winforms) in the same solution. Inside lets say Winapp1 , When adding a reference to this control, I can dynamically or statically create it and when running the application it is correctly drawn on the form. But when I take out the reference to this control in Winapp1, reference it in a utility project, then reference the utility project in Winapp1 or Winapp2, instantiate...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
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
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.