473,685 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

possible visual basic net form and c sharp form same project???

Is it possible join in the same project a visual basic net
form and a c sharp form?? if the answer is yes, how can I
do it?
Thanks for your answers
Nov 20 '05 #1
4 1238
Only if you compile the C# form in a project and reference it from VB

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

"jose" <jo********@ini cia.es> wrote in message
news:0b******** *************** *****@phx.gbl.. .
Is it possible join in the same project a visual basic net
form and a c sharp form?? if the answer is yes, how can I
do it?
Thanks for your answers

Nov 20 '05 #2
when you say reference it, are you saying add to vb
project??? Pleaseee,helllp p!!!
-----Original Message-----
Only if you compile the C# form in a project and reference it from VB
--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you
------------------------------

"jose" <jo********@ini cia.es> wrote in message
news:0b******* *************** ******@phx.gbl. ..
Is it possible join in the same project a visual basic net form and a c sharp form?? if the answer is yes, how can I do it?
Thanks for your answers

.

Nov 20 '05 #3
You will add it as a component

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all from you

------------------------------

<an*******@disc ussions.microso ft.com> wrote in message
news:0a******** *************** *****@phx.gbl.. .
when you say reference it, are you saying add to vb
project??? Pleaseee,helllp p!!!
-----Original Message-----
Only if you compile the C# form in a project and

reference it from VB

--
Ceers,
Crirus

------------------------------
If work were a good thing, the boss would take it all

from you

------------------------------

"jose" <jo********@ini cia.es> wrote in message
news:0b******* *************** ******@phx.gbl. ..
Is it possible join in the same project a visual basic net form and a c sharp form?? if the answer is yes, how can I do it?
Thanks for your answers

.

Nov 20 '05 #4
Hi Jose,

Not in the same <Project> but yes, in the same <Solution>.

Each would have its own Project and you would reference the C# project
from the VB one.

Compile the C# project and then Right-Click the VB project in the Solution
Explorer and select Add Reference. On the dialogue box which comes up, select
the Projects page. You'll find your C# project there. Click the [Select] and
[Ok] buttons. You'll then be able to see the C# project in the VB project's
list of references.

You may also have to add an Imports statement to your VB code. If so, type
Imports at the top of the code and then get intellisense to guide you from
there.

Regards,
Fergus

Nov 20 '05 #5

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

Similar topics

0
1754
by: mark | last post by:
Here's the most concise description I can give you of my problem... I'm trying to create a narrow form in Visual Basic.NET 2003. The form is about 95 pixels wide by 325 long. I resized it to these dimensions in the development environment. I've set the FormBorderStyle property to FixedSingle. I've set controlbox, minimizebox, and maximizebox to false because I don't want the form size to be tampered with, and because I want to make...
5
7229
by: K. Shier | last post by:
when attempting to edit code in a class file, i see the bug "Visual Basic ..NET compiler is unable to recover from the following error: System Error &Hc0000005&(Visual Basic internal compiler error) Save your work and restart Visual Studio .NET." has anyone seen this bug and can you confirm one way or the other whether or not it can corrupt your source files? (by 'corrupt' i mean: do anything to it that will cause it to fail to load and...
2
1418
by: jose | last post by:
Is it possible join in the same project a visual basic net form and a c sharp form?? if the answer is yes, how can I do it? Thanks for your answers
26
10856
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
10
6752
by: Dave Taylor | last post by:
I have a VB.NET WinForms project that has about 15 forms in it. When I opened the project yesterday, one of the form files does not open as a form (i.e. double-clicking it in Solution Explorer opens up the code file, not the form designer). Also, it does not appear to recognize the code file....there are no outlining indicators, typing in the code file there is no Intellisense stuff, and the code does not compile saying that it doesnt...
10
8199
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
1
2064
by: Ronm | last post by:
Hey Guys, I have a problem which has been driving me crazy for the last days. I'm working on a small project involving: Visual Basic Acces Database ASP and adobe/macromedia Flash,
2
1508
by: dancer | last post by:
In Visual Basic 2005 Express Edition When I choose Console Application for the project, the source code page automatically comes up with: Module Module1 When I choose Windows Application, the page automatically comes up with Public Class Form1 Why not Module in the Windows App page? Also, ASP.NET Web Application is not one of the choices when choosing a new
1
8763
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
8774
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7591
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
6436
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
5793
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4303
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
4525
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2941
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
3
1931
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.