Click here to Skip to main content
16,017,167 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i develop window application in vb.net but reporting section given to user in c# .net i added c# project it but how to call vb.net page to go c# page please help me ...........
Posted

1 solution

As far as .NET is concerned, VB and C# are the same: they are both compiled into IL and it can't really tell what the source code looked like by that stage.

Just add the Assembly reference, then add a using statement for the VB namespace and access the classes as if they were part of your project. If you want to access the C# from the VB, then add the reference and use an Includes statement instead.
(But don't try to add a reference to the C# in the VB, and a reference to the VB in the C# as VS will complain of a circular reference (which would prevent building the project)
 
Share this answer
 
Comments
Member 10285877 13-Aug-14 3:07am    
sir i access c# window form to vb window from buttton click i click if button then it go to c# form
OriginalGriff 13-Aug-14 3:23am    
So add the reference, add the Includes statement, and use them as if they were in VB - it's work fine.
Member 10285877 13-Aug-14 3:52am    
ok sie but where i use include statment
OriginalGriff 13-Aug-14 4:07am    
Sorry - lack of coffee error: for "Includes" read "Imports".

"Imports" statement, not "Includes" - I need more caffeine... :O
Member 10285877 13-Aug-14 6:13am    
ok sir its work thanku

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900