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. C#
  4. How to call different namespace

How to call different namespace

Scheduled Pinned Locked Moved C#
3 Posts 3 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.
  • E Offline
    E Offline
    Eyungwah
    wrote on last edited by
    #1

    Hi: I have a windows Form in C#. In my project I have multiple namespace1 & namespace2 and 1 Form. On the Form I have a Button, when clicking this button I need to call-out to namspace2. Is it possible to do this. Please Help. THanks, Eyungwah

    L C 2 Replies Last reply
    0
    • E Eyungwah

      Hi: I have a windows Form in C#. In my project I have multiple namespace1 & namespace2 and 1 Form. On the Form I have a Button, when clicking this button I need to call-out to namspace2. Is it possible to do this. Please Help. THanks, Eyungwah

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Eyungwah wrote:

      Is it possible to do this.

      using Eyungwah.GetAClue

      led mike

      1 Reply Last reply
      0
      • E Eyungwah

        Hi: I have a windows Form in C#. In my project I have multiple namespace1 & namespace2 and 1 Form. On the Form I have a Button, when clicking this button I need to call-out to namspace2. Is it possible to do this. Please Help. THanks, Eyungwah

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        You can't call a namespace. Namespaces contain things like classes, interfaces, enums and so on. If you are in namespace A and you want to use a class in namespace B you have two options. Option 1: Put a using statement at the top of the file in which you wish to use the namespace. e.g. using B Option 2: Fully qualify the class, interface, enum, etc. name with the namespace. e.g. B.MyClass


        Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

        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