Solved

Problem linking vb form to C# using visual studio. NET

Posted on 2002-05-29
6
134 Views
Last Modified: 2010-05-02
Problem
-------

I have create a vb form with coding.
How can i call or link the vb form with coding using c#............??


0
Comment
Question by:hwtang5401
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 200 total points
ID: 7043586
you can't do that.  The form in VB.NET MUST have it's code written in VB.NET.  You can encapsulate the functionality in a C# Assembly, but then you would need to call it from the VB.NET code.  C# has it's own forms generator.  Whay don't you just build the ENTIRE application in C#???
0
 

Author Comment

by:hwtang5401
ID: 7043597
But i manage to add the form.frm to my project. i think is possible to link or connect my c# coding with the form right??
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 7044238
I don't quite understand your question.

How do you compiler compile your code with both c# and vb coexist in the same project?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 7046097
why don't you simply design and build the ENTIRE APPLICATION in C#.  Use the C# forms generator to design and build the form, in C#????
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7851284
Hi hwtang5401,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Arthur_Wood@devx's comment(s) as an answer.

hwtang5401, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7912876
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 61
Microsoft Access combo box help 2 52
Visual Studio 2005 text editor 10 49
Excel Automation VBA 19 104
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question