Click here to Skip to main content
16,016,345 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBar code reading Pin
Sarbjit Singh9-Sep-06 0:13
Sarbjit Singh9-Sep-06 0:13 
AnswerRe: Bar code reading Pin
Dave Kreskowiak9-Sep-06 7:05
mveDave Kreskowiak9-Sep-06 7:05 
QuestionHelp: Getting the IPAddresses of Computers in a Workgroup Pin
lordkaile8-Sep-06 22:41
lordkaile8-Sep-06 22:41 
AnswerRe: Help: Getting the IPAddresses of Computers in a Workgroup Pin
Dave Kreskowiak9-Sep-06 7:03
mveDave Kreskowiak9-Sep-06 7:03 
GeneralRe: Help: Getting the IPAddresses of Computers in a Workgroup Pin
lordkaile9-Sep-06 22:42
lordkaile9-Sep-06 22:42 
GeneralRe: Help: Getting the IPAddresses of Computers in a Workgroup Pin
Dave Kreskowiak10-Sep-06 5:29
mveDave Kreskowiak10-Sep-06 5:29 
GeneralRe: Help: Getting the IPAddresses of Computers in a Workgroup Pin
lordkaile11-Sep-06 0:43
lordkaile11-Sep-06 0:43 
GeneralRe: Help: Getting the IPAddresses of Computers in a Workgroup Pin
Dave Kreskowiak11-Sep-06 2:00
mveDave Kreskowiak11-Sep-06 2:00 
OK. So you're using 2003. No, you can't use .NET 2.0 with VS.NET 2003. It will only work with VS.NET 2005.

Remove the .Address part of the line. You don't need it unless you want the IP address returned as a 32-bit number. This isn't supported in .NET 2.0, so don't use it.

This code works just fine:
    Dim hostInfo As IPHostEntry = Dns.GetHostByName("www.yahoo.com")
    Dim address As IPAddress() = hostInfo.AddressList
 
    Dim al As String() = hostInfo.Aliases
    Debug.WriteLine("Host name : " + hostInfo.HostName)
    Debug.WriteLine(ControlChars.Cr + "Aliases : ")
 
    Dim index As Integer
    For index = 0 To al.Length - 1
        Debug.WriteLine(al(index))
    Next index
 
    Debug.WriteLine(ControlChars.Cr + "IP address list : ")
    For index = 0 To address.Length - 1
        Debug.WriteLine(address(index))
    Next index

and was taken directly out of the docs for Dns.GetHostByName in the .NET 1.0/1.1 docs.


Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionVB.net 2003 application Pin
MohamadJaber8-Sep-06 21:47
MohamadJaber8-Sep-06 21:47 
AnswerRe: VB.net 2003 application Pin
lordkaile8-Sep-06 22:31
lordkaile8-Sep-06 22:31 
Questionflicker in win app refresh Pin
Are Jay8-Sep-06 20:42
Are Jay8-Sep-06 20:42 
QuestionDataGrid View Pin
KaleBhagyesh8-Sep-06 20:37
KaleBhagyesh8-Sep-06 20:37 
Questionhow to make an application as start-up one Pin
Pradip Kishore8-Sep-06 18:34
Pradip Kishore8-Sep-06 18:34 
AnswerRe: how to make an application as start-up one Pin
Are Jay8-Sep-06 20:17
Are Jay8-Sep-06 20:17 
GeneralRe: how to make an application as start-up one Pin
Pradip Kishore9-Sep-06 2:04
Pradip Kishore9-Sep-06 2:04 
QuestionA good format of file to store the application's data? Pin
rgaleote8-Sep-06 12:02
rgaleote8-Sep-06 12:02 
AnswerRe: A good format of file to store the application's data? Pin
Guffa9-Sep-06 10:14
Guffa9-Sep-06 10:14 
Questionerror in Save Embedded Resource to File Pin
elsahaba8-Sep-06 11:36
elsahaba8-Sep-06 11:36 
QuestionData Grid and Hyperlink Issue Pin
katman618-Sep-06 9:59
katman618-Sep-06 9:59 
QuestionVB6 user control -cut-paste problem Pin
RagTopMan8-Sep-06 8:18
RagTopMan8-Sep-06 8:18 
QuestionNTFS File Extentions Pin
amaneet8-Sep-06 6:28
amaneet8-Sep-06 6:28 
AnswerRe: NTFS File Extentions Pin
Dave Kreskowiak10-Sep-06 5:35
mveDave Kreskowiak10-Sep-06 5:35 
Questiondisplaying generated html in a Frameset Pin
ONeil Tomlinson8-Sep-06 5:24
ONeil Tomlinson8-Sep-06 5:24 
AnswerRe: displaying generated html in a Frameset Pin
Jun Du8-Sep-06 7:08
Jun Du8-Sep-06 7:08 
GeneralRe: displaying generated html in a Frameset Pin
ONeil Tomlinson8-Sep-06 8:36
ONeil Tomlinson8-Sep-06 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.