Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > API > Using IP Address Control !!


Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2002, 05:06 PM
Sabby
Guest
 
Posts: n/a
Question Using IP Address Control !!


Hi there. Im a bit of a VB n00b and im having trouble getting hold of the IP Address Control that you see when you access TCP/IP settings in network neighbourhood. I have a little proggie that needs to retrieve an IP address and i would like to use this control.

It seems that it is incorporated in the MS Windows Common Controls (Comctl32.dll) but according to MSDN :

Quote:
Using IP Address Controls
This section describes how to implement an IP address control in your application.

Initializing an IP Address Control
To use an IP address control, call InitCommonControlsEx with the ICC_INTERNET_CLASSES flag set in the dwICC member of the INITCOMMONCONTROLSEX structure.

Creating an IP Address Control
Use theCreateWindow or theCreateWindowEx API to create an IP address control. The class name for the control is WC_IPADDRESS, which is defined in Commctrl.h. No IP address control-specific styles exist; however, because this is a child control, use the WS_CHILD style as a minimum.
This to me looks like some C++ API programmin which i am absolutely clueless about. Any help to get me going would be appreciated! Cheers

-Sab-
Reply With Quote
  #2  
Old 07-08-2002, 05:24 PM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Its not opensource, I dont think, but this control is wrapped in a DLL provided by the Common Controls Replacement Project. Look here:

http://www.mvps.org/ccrp/controls/ccrpipadd6.htm
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #3  
Old 07-09-2002, 03:47 PM
Sabby
Guest
 
Posts: n/a
Default

Cheers 4 the link Squirm, seems like the control and a couple of extras are included in the d/l.

-Sab-
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->