Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to run C# AND VB.NET applications together?

How to run C# AND VB.NET applications together?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
7 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CoderForEver
    wrote on last edited by
    #1

    Hello every body .......... I was developing a C# application and one of ma friend was also developing an application that is dependent with my C# application using VB.NET ........ He is good @ VB.NET ..... so how do our applications can work together?? THANK YOU

    L 1 Reply Last reply
    0
    • C CoderForEver

      Hello every body .......... I was developing a C# application and one of ma friend was also developing an application that is dependent with my C# application using VB.NET ........ He is good @ VB.NET ..... so how do our applications can work together?? THANK YOU

      L Offline
      L Offline
      Leonardo Muzzi
      wrote on last edited by
      #2

      Your colleague just need to reference your application (DLL). He will be able to use any public members of your library like a C# application would. After compiling an application, doesn't matter if it was written in C# or VB.NET, you use it the same way.

      Regards, Leonardo Muzzi

      C 1 Reply Last reply
      0
      • L Leonardo Muzzi

        Your colleague just need to reference your application (DLL). He will be able to use any public members of your library like a C# application would. After compiling an application, doesn't matter if it was written in C# or VB.NET, you use it the same way.

        Regards, Leonardo Muzzi

        C Offline
        C Offline
        CoderForEver
        wrote on last edited by
        #3

        Leonardo Muzzi wrote:

        He will be able to use any public members of your library

        How do he references to it ...... i.e just using the form name?? or how ?? Thank you

        L N 2 Replies Last reply
        0
        • C CoderForEver

          Leonardo Muzzi wrote:

          He will be able to use any public members of your library

          How do he references to it ...... i.e just using the form name?? or how ?? Thank you

          L Offline
          L Offline
          Leonardo Muzzi
          wrote on last edited by
          #4

          First you build an assembly with your C# library. Then send this assembly (DLL) to him, and he can reference this assembly in his own application. If he is using VS, just right click the project and "Add Reference". After adding the reference, his application will be able to see all your Namespaces and all public classes within it. If you are making a windows form app, you should separate the Executable from the Business library that you want to share. Let's say you have a method called "ListClients" in a "Clients" class and wants to share it. You should build a separate project, a Class Library project, called "ClientsAccess" for instance, and put this class in this new project. Then, you reference this project from your windows form app. This new Class Library project will generate a DLL, called "ClientsAccess.dll", that you can send to your colleague so he can reference the DLL just like you did and use the Clients class inside.

          Regards, Leonardo Muzzi

          C 1 Reply Last reply
          0
          • C CoderForEver

            Leonardo Muzzi wrote:

            He will be able to use any public members of your library

            How do he references to it ...... i.e just using the form name?? or how ?? Thank you

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Hey dude....we have all tried to help you here....however, it is clear that you would benefit from reading a couple of books....or taking some .net and development classes before asking more. The questions you are asking are very basic....and....would be covered in these resources....If you continue to rely on others you will never learn or succeed in this profession.


            only two letters away from being an asset

            C 1 Reply Last reply
            0
            • L Leonardo Muzzi

              First you build an assembly with your C# library. Then send this assembly (DLL) to him, and he can reference this assembly in his own application. If he is using VS, just right click the project and "Add Reference". After adding the reference, his application will be able to see all your Namespaces and all public classes within it. If you are making a windows form app, you should separate the Executable from the Business library that you want to share. Let's say you have a method called "ListClients" in a "Clients" class and wants to share it. You should build a separate project, a Class Library project, called "ClientsAccess" for instance, and put this class in this new project. Then, you reference this project from your windows form app. This new Class Library project will generate a DLL, called "ClientsAccess.dll", that you can send to your colleague so he can reference the DLL just like you did and use the Clients class inside.

              Regards, Leonardo Muzzi

              C Offline
              C Offline
              CoderForEver
              wrote on last edited by
              #6

              OK DUDE.... I will try it the rest by my self... thnks for the help

              1 Reply Last reply
              0
              • N Not Active

                Hey dude....we have all tried to help you here....however, it is clear that you would benefit from reading a couple of books....or taking some .net and development classes before asking more. The questions you are asking are very basic....and....would be covered in these resources....If you continue to rely on others you will never learn or succeed in this profession.


                only two letters away from being an asset

                C Offline
                C Offline
                CoderForEver
                wrote on last edited by
                #7

                ya you are right ....... i will follow your advice ..... by the way are there any free books on .Net & c# windows form applications online?? thank you

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups