Click here to Skip to main content
15,897,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I have one barcode project made in c#(windows application).now i want to use that in my WPF (with VB.net) project .

Please tell me the steps to do that..

Thank you
Posted

Just add it to your solution:
1) In the Solution explorer, right click your Solution name
2) From the drop down, select "Add...Existing project..."
3) Browse to the project file, and press "open".
4) All you have to do then is add the reference to your other projects as required in teh usual way.
 
Share this answer
 
Comments
[no name] 4-Mar-13 7:05am    
Can u provide any links where there is any pictorial explanation...
OriginalGriff 4-Mar-13 7:07am    
Pictures...you are joking, right?
You know where the Solution Explorer pane is, yes?
And you know how to right click, yes?
It's all pretty obvious from there...
[no name] 4-Mar-13 7:08am    
No but when i do its asking extensions related to vb only..no .cs is coming...
OriginalGriff 4-Mar-13 7:19am    
It deosn't ask about VB at all! Or CS.
It;s looking for a Project file (.csproj, .vbproj, ect.) - at a guess you are not right clicking the correct name.
You wan tthe Solution name: the line at eth very top of teh Solution explorer, where is says

Solution 'MySolutionName' (n projects)

rather than a project itself.
[no name] 4-Mar-13 8:16am    
i have one form test.cs in this..so on button click if i want to call that then how to call...is there any other way...or same as we do
Hi.You must Right Click on your c# project and :
1- select properties.
2-Change Output Type From WindowsApplication to Class Library
3-Build it(remember before these steps add c# to your currently project)
4-in currently project(WPF with VB.Net) right click on References
5-From Projects Tab add your c# windows application to your VB project
6-now you can use any class or function of your c# application by adding this:
Using yourFavoriteNamespace;

I hope this help you.
Good luck
 
Share this answer
 

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