Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display IP address (Public and Private) 3

Status
Not open for further replies.

NTesla1886

Technical User
Mar 14, 2008
62
US
I need to write a program that will display both your public and private IP address and whether the private is Static or dynamic.

How would I go about this or is it even possible in VB 6.

Kevin
Tektility Inc
Maximizing Potential Through Technology
 
I like the usercontrol solution

As for the reg-free com - have you found a simple way to generate the necessary manifest files for VB6?
 
Interesting. I'd tried the VS5 dummy app isolation technique in the past, gave up on it, and then looked (very, very briefly) at doing something vaguely similar to MMM but gave up pretty quicky as I just didn't have enough of a requirement for reg-free com. It is interesting to note that the author does seem to admit that it is a bit of a black art ...
 
dilettante
I get a variable not defined error on HTTPGet1.

I did find my .net cd and do have it installed if it would be better to use than VB 6 although I know very little about .net

Kevin
Tektility Inc
Maximizing Potential Through Technology
 
(erm ... for VS5 in my last post read VS2005)

> get a variable not defined error
Did you create a UserControl called HTTPGet as per dilettante's post and, more importantly, placed in instance of that control on the form?
 
Yes I did create the user control and named it HTTPGet.

I copied and pasted the code that dilttante posted.

However I did notice that the Control is name HTTPGet and in the code is HTTPGet1, I even changed it to HTTPGet in the code.

I am not sure about adding the reference past putting in the code. I have not worked with user controls before and do not know how they work.

I am still getting the error.

Kevin
Tektility Inc
Maximizing Potential Through Technology
 
> I even changed it to HTTPGet in the code
Don't

strongm said:
...and, more importantly, placed in instance of that control on the form?

Once you have created a usercontrol you will see a new icon appear in the Components toolbox alongside all the standard controls. It will likely be greyed out and will remain so until you close the usercontrol's (form) designer window. At this point your usercontrol can be selected and placed on a form in exactly the same way as any other control.

Furthermore, assume you have a usercontrol called Fred. When you place an instance of that usercontrol on a form that instance will be called Fred1. When you place a second instance, it will be called Fred2. VB does the same thing to your usercontrol as it does to the built-in controls (i.e as you masy have noticed you get Command1, Command2, etc.).


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top