473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

C#Control.>VB.NET

Mex
Hello
Can in C# programmed control to be added to VB.NET Form?

Mex
Jun 5 '07 #1
5 1321
Mex
sry, just ignore prev. question :))
Mex
"Mex" <re*******@hot.eewrote in message
news:O7**************@TK2MSFTNGP05.phx.gbl...
Hello
Can in C# programmed control to be added to VB.NET Form?

Mex

Jun 5 '07 #2
On Jun 5, 3:58 am, "Mex" <redivi...@hot.eewrote:
Hello

Can in C# programmed control to be added to VB.NET Form?

Mex
For the others who may be searching the archives, the "standard" way
is to compile the C# control into a dll, add that dll to the project
(and the toolbox if desired), and use the control like normal. You can
also add the C# project to your solution and reference the project if
you need to do updates to the control.

Thanks,

Seth Rowe

Jun 5 '07 #3
On Jun 5, 6:33 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jun 5, 3:58 am, "Mex" <redivi...@hot.eewrote:
Hello
Can in C# programmed control to be added to VB.NET Form?
Mex

For the others who may be searching the archives, the "standard" way
is to compile the C# control into a dll, add that dll to the project
(and the toolbox if desired), and use the control like normal. You can
also add the C# project to your solution and reference the project if
you need to do updates to the control.

Thanks,

Seth Rowe
I think there is an even easier method with VS2005. If the control was
compiled as an OCX, I think you can just drag the ocx file to the
toolbox window, and the control is then available as any standard
toolbox control.

Jun 5 '07 #4
Hi Zack and Seth,

I assume you are kiding,

For the OP there are in Net no C# or VB.Net controls it are .Net controls
all nice in a namespace.

(some are not direct delivered but go using a powerpack or whatever the name
they have given to that)

Cor

<za***@construction-imaging.comschreef in bericht
news:11**********************@o5g2000hsb.googlegro ups.com...
On Jun 5, 6:33 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
>On Jun 5, 3:58 am, "Mex" <redivi...@hot.eewrote:
Hello
Can in C# programmed control to be added to VB.NET Form?
Mex

For the others who may be searching the archives, the "standard" way
is to compile the C# control into a dll, add that dll to the project
(and the toolbox if desired), and use the control like normal. You can
also add the C# project to your solution and reference the project if
you need to do updates to the control.

Thanks,

Seth Rowe

I think there is an even easier method with VS2005. If the control was
compiled as an OCX, I think you can just drag the ocx file to the
toolbox window, and the control is then available as any standard
toolbox control.

Jun 5 '07 #5
On Jun 5, 1:50 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
Hi Zack and Seth,

I assume you are kiding,

For the OP there are in Net no C# or VB.Net controls it are .Net controls
all nice in a namespace.

(some are not direct delivered but go using a powerpack or whatever the name
they have given to that)

Cor

<z...@construction-imaging.comschreef in berichtnews:11**********************@o5g2000hsb.go oglegroups.com...
On Jun 5, 6:33 am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jun 5, 3:58 am, "Mex" <redivi...@hot.eewrote:
Hello
Can in C# programmed control to be added to VB.NET Form?
Mex
For the others who may be searching the archives, the "standard" way
is to compile the C# control into a dll, add that dll to the project
(and the toolbox if desired), and use the control like normal. You can
also add the C# project to your solution and reference the project if
you need to do updates to the control.
Thanks,
Seth Rowe
I think there is an even easier method with VS2005. If the control was
compiled as an OCX, I think you can just drag the ocx file to the
toolbox window, and the control is then available as any standard
toolbox control.
Cor, I believe the OP is talking about custom controls he created in a
C# project - not the control's "packaged" with the framework. So no, I
am not kidding :-)

Thanks,

Seth Rowe

Jun 5 '07 #6

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

Similar topics

2
by: isaac rainsford (MCSE) | last post by:
can anyone lend some assistance on how to convert some code to vb.net from vb5? in VB5 the code succeeds and the IF statement is processed, in Vb.NET the code returns error and the msgbox...
4
by: Jim Hubbard | last post by:
I have some C# code that is supposed to wrap the defrag APIs and I am trying to convert it to VB.Net (2003). But, I keep having problems. The C# code is relatively short, so I'll post it...
0
by: NGN | last post by:
Help! In VB.Net I go to include reference .NET "Microsoft.Directx" and there isn't any? In dxdiag everything is OK. And in tab Files I can se the Microsoft.Directx.dll file? When I do a search in...
0
by: Raja | last post by:
I have written a VB.net assembly that internally uses VB 6.0 DCOM component and I am getting the output as I expected when I use the VB.net assebly when i try to test it in a VB.NET windows...
5
by: sck10 | last post by:
Hello, I am using the code below to set the values of a DetailsView template field using FindControl. My question is how would you find a control if its a Boundfield control? For example,...
5
by: Mason | last post by:
I'm having some problems converting VBA for Word 2000 to code that VB.Net understands. I recorded a macro in Word to add numbering (a. b. c.) to my paragraphs. I managed to translate quite a bit...
2
by: Sam | last post by:
Hi, I've seen this kind of thing in C# quite often : cbo.Validating += new CancelEventHandler(cbo_Validating); what is the vb.net equivalent ? Please don't send me to...
4
by: Mika M | last post by:
Hi! Earlier using VB 2003 I used... Net.Dns.Resolve(Net.Dns.GetHostName()).AddressList(0).ToString() ....to retrieve IP-address of the local (first) NIC. Now I'm starting to use VB 2005,...
1
by: =?Utf-8?B?QnJheA==?= | last post by:
Hi - I am teaching VB to yr 10 students in Australia. I have VB2005 Express on my computer and the kids are working on VB2003. Is there any way of converting VB 2005 files so they can be used on VB...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.