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
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to use a C# class through VB.NET

How to use a C# class through VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharphelpjsontutorial
3 Posts 2 Posters 0 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.
  • A Offline
    A Offline
    azam316
    wrote on last edited by
    #1

    hi, i really need to know the solution to this problem as soon as possible!!! i have to use a class written in C# through VB.NET for my project. the C# class contains all image procesing methods i need, and the rest of the project is in VB.NET!! i would really appreciate any help as soon as possible. thanx in advance!!! ☺«««DTA»»»☺

    D 1 Reply Last reply
    0
    • A azam316

      hi, i really need to know the solution to this problem as soon as possible!!! i have to use a class written in C# through VB.NET for my project. the C# class contains all image procesing methods i need, and the rest of the project is in VB.NET!! i would really appreciate any help as soon as possible. thanx in advance!!! ☺«««DTA»»»☺

      D Offline
      D Offline
      Dennis C Dietrich
      wrote on last edited by
      #2

      azam316 wrote: i have to use a class written in C# through VB.NET for my project. Just add a new C# Class Library project to your existing solution. This new project will be compiled to a DLL. Then reference the C# project in your VB.NET project (also remember to check the project dependencies). Of course you could also first compile the C# sources to a DLL and then reference the compiled DLL. But using a multi-project solution has the advantage of enabling you to quickly change the C# sources if necessary. For more details see Managing Solutions, Projects, and Files[^] (in particular Multi-Project Solutions[^]). Best regards Dennis

      A 1 Reply Last reply
      0
      • D Dennis C Dietrich

        azam316 wrote: i have to use a class written in C# through VB.NET for my project. Just add a new C# Class Library project to your existing solution. This new project will be compiled to a DLL. Then reference the C# project in your VB.NET project (also remember to check the project dependencies). Of course you could also first compile the C# sources to a DLL and then reference the compiled DLL. But using a multi-project solution has the advantage of enabling you to quickly change the C# sources if necessary. For more details see Managing Solutions, Projects, and Files[^] (in particular Multi-Project Solutions[^]). Best regards Dennis

        A Offline
        A Offline
        azam316
        wrote on last edited by
        #3

        thanx a lot Dennis. u r a life saver!! thanx again! ☺«««DTA»»»☺

        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