Results 1 to 4 of 4

Thread: vb.net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    india
    Posts
    26

    Thumbs up vb.net

    hi,
    How to check using VB.net application whether the devices like printer are connected to the system ?
    .How can we check if NIC is present and is connected to network?
    IP address alone is enough to connect to a host in the network ?
    Anyone knows please help me.
    sanjays

  2. #2
    New Member sokkmees's Avatar
    Join Date
    Sep 2002
    Location
    Estonia
    Posts
    11
    For printers collection use:

    Code:
    System.Drawing.Printing.PrinterSettings.InstalledPrinters.Item
    For IP address:

    Code:
    Dim ipHostInfo As System.Net.IPHostEntry = System.Net.Dns.Resolve(System.Net.Dns.GetHostName())
    Dim ipAddress As System.Net.IPAddress = ipHostInfo.AddressList(0)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Location
    india
    Posts
    26
    hi,
    this gets the ip address ,thanks for it.
    But my need is to know whether the NIC has connection with the network or not. And how to connect to a host in the LAN?

  4. #4
    Member
    Join Date
    Sep 2002
    Location
    Cincinnati, OH
    Posts
    44
    System.Net.Sockets - Ping to check for network activity, and connect to a host. Need further let me know.
    Jim Webster

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width