473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VB.NET 2002 code upgraded to 2003

I borrowed some code (Listed below) in VB.NET 2002, and it works great. I
upgraded to 2003 and although this snippet still works, the
(.AddressList(0).Address) portion of it has a squiggly line under it and
states the following:

'Public Property Address() As Long' is obsolete: 'IPAddress.Address is
address family dependant, use Equals method for comparison.'

I would like to fix this, but have no idea how. It's not failing out my
code, but I still want to fix the issue. Any thoughts?

Shared Function GetIPAddress() As String

Dim Address As System.Net.IPAddress

With System.Net.Dns.GetHostByName(System.Net.Dns.GetHos tName())

Address = New System.Net.IPAddress(.AddressList(0).Address)

End With

GetIPAddress = Address.ToString

End Function
Nov 20 '05 #1
2 1269
"James R. Atherton" <ja****@adelphia.net> schrieb
Address = New
System.Net.IPAddress(.AddressList(0).Address)


Untested:
Address = New System.Net.IPAddress(.AddressList(0).GetAddressByt es)

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Nope, all that returns is the word Address...

Thank you though.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
"James R. Atherton" <ja****@adelphia.net> schrieb
Address = New
System.Net.IPAddress(.AddressList(0).Address)


Untested:
Address = New System.Net.IPAddress(.AddressList(0).GetAddressByt es)

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray | last post by:
I bought/installed the upgrade to Visual Studio .Net Professional 2003 (from 2002). I was surprised that it did not appear to uninstall (or overlay) my old version (2002) of Visual Studio .Net...
1
by: Al Franz | last post by:
Just upgraded from Outlook 2002 to 2003 for my email reader. And emails I get from a PERL script now display the $eol written in PERL as a space instead of a carriage return and line feed as they...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
4
by: Bob S. | last post by:
I am trying to decide whether or not to upgrade to Access 2003 from 2002 but I'm having a difficult time weighing the options. Has anyone already upgraded to Access 2003? Is there much difference...
2
by: Mad Scientist Jr | last post by:
I have an ASP.NET project developed on one machine in Vis. Studio 2003, and moved it to an older machine that has Vis. Studio 2002. This older machine has been upgraded with the 1.1 framework, as...
12
by: Gary Napolitano | last post by:
I have VB .net (2002 personal ownership) at home, and .net 2003 at my office (we're an MSDN developer shop) and I found that I cannot write code home, bring it to work, and back home again. This...
0
by: John | last post by:
Hello, We upgraded from vs.net 2002 to vs.net 2003 but we don't seem to have the new 9.2 merge modules does anyone know where I can get them? Thanks in advance. John
5
by: Bill | last post by:
I have a problem and I need to know if anyone can assist in solving it. Our database of choice is Oracle. When we attempted to do some VB.NET coding with .NET 2002 and framework 1.0, whe had...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.