|
-
Jul 7th, 2004, 01:09 AM
#1
Thread Starter
Junior Member
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
-
Jul 7th, 2004, 04:25 AM
#2
New Member
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)
-
Jul 8th, 2004, 10:05 PM
#3
Thread Starter
Junior Member
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?
-
Jul 16th, 2004, 12:41 PM
#4
Member
System.Net.Sockets - Ping to check for network activity, and connect to a host. Need further let me know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|