Hiding The Cursor

You could move the cursor off the screen, but there is an easy way to make the cursor invisible with an API call: DeclareDeclare Function ShowCursor Lib "User" (ByVal bShow As Integer) As Integer Usage To use the API, simply call:R = ShowCursor(True) orR = ShowCursor(False) There is one thing you should know about this … Continue reading Hiding The Cursor

Error Handler

To do effective error handling, you must write them into each and every routine. What a pain! There are many ways to do error handling, from coding it yourself to purchasing add-on tools that will do most of the code writing for you. This tip is for those who prefer to do it themselves. This … Continue reading Error Handler

Create A Full Directory Path

DeclarePrivate Declare Function MakeSureDirectoryPathExists Lib "IMAGEHLP.DLL" (ByVal DirPath As String) As Long CodePublic Sub CreatePath(ByVal DestPath As String)    If Right(DestPath, 1) <> "\" Then        DestPath = DestPath & "\"    End If    If MakeSureDirectoryPathExists(DestPath) = 0 Then        MsgBox "Error creating path: " & DestPath    End IfEnd Sub   Tip Submitted By: Kevin Buchan

Service Pack 6 for Visual Basic 6.0

This is a multi-part download of Service Pack 6 for Visual Basic 6.0. Customers with broadband connections are encouraged to download the one-file version. See the Related Resources link. Service Pack 6 for Visual Basic 6.0 provides the latest updates to Visual Basic 6.0. It is recommended for all users of Visual Basic 6.0.   … Continue reading Service Pack 6 for Visual Basic 6.0

Service Pack 6 for Visual Basic 6.0: Run-Time Redistribution Pack

vbrun60sp6.exe is a self-extracting executable file that installs versions of the Microsoft Visual Basic run-time files required by all applications created with Visual Basic 6.0. The files include the fixes shipped with Service Pack 6 for Visual Basic 6.0.   http://www.microsoft.com/downloads/details.aspx?familyid=7b9ba261-7a9c-43e7-9117-f673077ffb3c&displaylang=en

Centering The Mouse Pointer Over A Control

Positioning the cursor over the button they will are likely to make the action quicker and easier. The following code will center the mouse cursor over any control that has an hWnd property. Declare#If Win32 Then     Type RECT           left As Long           top As Long           right As Long           bottom As Long     End Type     Declare Sub GetWindowRect … Continue reading Centering The Mouse Pointer Over A Control