devxlogo

August 28, 1999

How to apply the flat style to a toolbar

All recent Windows applications use a flat toolbar similar to Internet Explorer ‘s and Microsoft Word’s ones. Visual Basic 6 includes a Toolbar control that supports the flat look, but

Add pizazz to your apps with an animated cursor

Who said you can’t use an animated cursor with Visual Basic? Actually, it’s so simple! You just have to load your animated cursor through LoadCursorFromFile API function, then you get

Format a drive using an undocumented function

SHFormatDrive is an undocumented but simple API function that allows you to format a drive. This function simply opens “Format Drive” diaolog window. Being undocument you won’t find its Declare

Hide or disable the desktop icons

The Desktop is a window like any other window in the system, so you can hide/show and enable/disable it. The only details you need to know is how to retrieve

Display the “Shut down Windows” dialog

To programmatically display the “Shut down Windows” standard dialog box you can use the SHShutDownDialog undocumented API function, whose declaration is: Declare Function SHShutDownDialog Lib “shell32” Alias “#60” (ByVal lType

Get IP Address Via The Hostname

The class java.net.InetAddress represents an Internet Protocol (IP) address. You can use this class to find the IP address of a host using the hostname. The following code demonstrates this:

Get the Hostname via IP Address

The class java.net.InetAddress represents an Internet Protocol (IP) address. You can use this class to find the hostname of an IP address. The following code demonstrates this: try{ java.net.InetAddress inetAdd