Computer Name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Huw Lloyd

    #1

    Computer Name

    How do i get the name of the computer from within my Windows VB.Net
    application?

    Is there a property that I can use?

    Thanks in advance
  • Peter Rilling

    #2
    Re: Computer Name

    Try Environment.Mac hineName.


    "Huw Lloyd" <huw.lloyd@sabe ranalytics.nosp am.com> wrote in message
    news:bng7vj$7jm $1@sparta.btint ernet.com...[color=blue]
    > How do i get the name of the computer from within my Windows VB.Net
    > application?
    >
    > Is there a property that I can use?
    >
    > Thanks in advance[/color]


    Comment

    • daniel

      #3
      Computer Name


      yes there is, you will find all you need within the
      sealed class "System.Environ ment", the computer name is
      System.Environm ent.MachineName

      daniel.

      [color=blue]
      >-----Original Message-----
      >How do i get the name of the computer from within my[/color]
      Windows VB.Net[color=blue]
      >application?
      >
      >Is there a property that I can use?
      >
      >Thanks in advance
      >.
      >[/color]

      Comment

      • Jody Fisher

        #4
        Re: Computer Name

        You could also use DirectoryServic es if you are after a bit more info than
        just System.Environm ent



        Cheers

        "daniel" <anonymous@disc ussions.microso ft.com> wrote in message
        news:07cf01c39b bb$1e3eaf00$a10 1280a@phx.gbl.. .[color=blue]
        >
        > yes there is, you will find all you need within the
        > sealed class "System.Environ ment", the computer name is
        > System.Environm ent.MachineName
        >
        > daniel.
        >
        >[color=green]
        > >-----Original Message-----
        > >How do i get the name of the computer from within my[/color]
        > Windows VB.Net[color=green]
        > >application?
        > >
        > >Is there a property that I can use?
        > >
        > >Thanks in advance
        > >.
        > >[/color][/color]


        Comment

        Working...