Jump: Search:

Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access 2007/2010 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2010 (32 bit), 2007, 2003, 2002, 2000, and
Visual Basic 6.0!

Also available for:
Access 97/95


View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?

 

"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP

 

 

 

 

 
Royalty free source code library modules for Microsoft Access, VB6, VBA, OfficeRoyalty free source code library modules for Microsoft Access, VB6, VBA, OfficeVBA and VB6 Source Code Library Download the free trial version of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA
Category: Microsoft Visual Basic 6 : Controls
Description: Code for working with VB6 controls

Class: CIPAddressInput

Class that implements the IP Address Input Windows common control.

This class implements routines for creating and manipulating the IP Address control in the Internet Explorer common control library. This class requires version 4.71 or later of COMCTL32.DLL. Please note that you cannot simply redistribute COMCTL32.DLL with your application.

Procedure Name

Type

Description

(Declarations) Declarations Declarations and private variables for the CIPAddressInput class
Height Property Gets the height of the ipaddress control
hwnd Property Gets the handle of the ipaddress control (only valid if the Create function has been called)
hWndParent Property Gets the handle of the parent window (only valid if the Create function has been called)
IPAddress Property Sets the IP address in the control. You cannot set this property until after the create method has been called.
Left Property Sets the left position of the ipaddress control, relative to the parent window
Top Property Gets the top position of the ipaddress control, relative to the parent window
Width Property Gets the width of the ipaddress control
Class_Terminate Terminate Release resources used by the class
Clear Method Clear the contents of the control
Create Method Create the ipaddress picker control. This procedure should only be called after the hWndParent, Left, Top, Width, and Height properties have been set.
dblToLong Private Performs an unsigned conversion from a Double value to a long Value. This function correctly handles doubles greater than 2,147,483,647 and less than or equal to 4,294,967,295.
Destroy Method Destroy the window that we created. It is not necessary to call this procedure. The Terminate event of this class destroys the window.
HiByte Private Returns the high byte of the passed Integer
HiWord Private Returns the high integer of the passed long
IntToLong Private Converts an Integer value to a Long, treating the integer as unsigned
IPToLong Method Converts an IP address to a long, treating the integer as though it were unsigned. For example, performing the following assignment lngNumber = -1 assigns -1 to the variable lngNumber. However, This assignment lngNumber = IntToLong(-1) assigns 65,535 to lngNumber.
IsBlank Method Returns whether or not the contents of the control are empty
LoByte Private Returns the low byte of the passed integer
LongToInt Private Performs an unsigned conversion from a Long value to an Integer
LongToIP Method Converts a Long value to an IP address string
LoWord Private Returns the low integer of the passed long
MakeInt Private Combines two bytes into an integer.
MakeLong Private Combines two words (integers) into a long. This routine correctly handles negative input Values
UpdatePosition Method Update the control's left, top, width and height properties. This is useful if you want to change the size or position of the control after it has been created. The position is determined by the Left, Top, Width, and Height properties.

Overview of Total Visual SourceBook

The source code in Total Visual SourceBook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Additional Resources

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence