Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2006, 03:04 AM
Registered User
 
Join Date: Oct 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to shriji.1111
Default Vb and C# Files in Single Project

Dear Friends,

I want to add vb and c# files in Single Project
Is it Possible?

I create one project using c# new project.
Now i add vb file by using Add existing Item.

But Now, I cann't use vb file's Functionality.
I try using Namespace name and class name.
but it dosen't work.

So if You have some idea about this topic.
Please Post Reply.

Thanks.

Brijesh Shah
 
Old December 15th, 2006, 06:59 PM
Authorized User
 
Join Date: Feb 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't mix VB and C# files in the same project. You would either need to create two separate projects (one referencing the other) or you would need to convert files to either VB or C#.


 
Old December 16th, 2006, 07:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This is not entirely true; it depends on the project.

In ASP.NET 2 you *can* mix VB.NET and C# pages and classes.

Brijesh: what project are you building? And what framework version are you using?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 16th, 2006, 09:44 PM
Authorized User
 
Join Date: Feb 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

True, but even then you cannot have both VB and C# classes forming the code-behind for the same page. And you certainly can't call a VB code-behind class from a C# code-behind class.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple FOP files to single PDF using XSL bhavanimachani XML 7 March 28th, 2008 05:59 AM
How to make a single EXE of a VB project amarjits Pro VB 6 1 January 17th, 2007 08:48 AM
Save (output to) multiple files from single click moo_desanta Classic ASP Basics 2 June 23rd, 2006 02:00 AM
Concatenate different files into one single report safecoder Crystal Reports 1 October 12th, 2004 03:37 PM
New VB Project with C ++ Files BSkelding Pro VB.NET 2002/2003 4 July 16th, 2004 08:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.