Subscribe: TheScarms Visual Basic 6.0/Win32 API Library
http://www.thescarms.com/vbasic/vbasic.xml
Preview: TheScarms Visual Basic 6.0/Win32 API Library

TheScarms Visual Basic 6.0/Win32 API Library



Providing Visual Basic solutions to hard to solve programming issues!



 



Create 3 Dimensional looking text from your VB6 app
Create 3 Dimensional looking text from your VB6 application



Create Irregularly Shaped Forms Based on any Picture
Create an irregular form that will automatically take on the shape of any picture.



Simulate Window's Task List/Bring a Window to the Foreground
Simulate Window's Tasklist using the EnumWindows API. Get a list of the applications running and with the ability to switch between them. Bring a window to the foreground.



Create a Dockable Autohide Appbar using VB6 and ShAppBarMessage API
Create an Appbar that you can dock and make autohide, just like Windows taskbar, using the SHAppBarMessage API.



Determine if an Application has Stopped Responding
Determine if an Application is Hung or has Stopped Responding using the SendMessageTimeout API function.



VB code to Search arrays and file using a binary search
VB code to locate items in arrays and files quickly using a binary search.



View and extract CAB file contents from VB
View and extract the contents of cabinet (.CAB) files using Visual Basic.



Calculate Month and Quarter End Dates from Visual Basic.
Visual Basic class module to determine the next day, current month end date, next month end date, current quarter end date and next quarter end date from a given date.



Capture and Print the Screen, a Form or any Window from Visual Basic
VB code to Capture and Print the Contents of any Window including the desktop window



List and Change the Long and Short Date Formats Programmatically from VB
Programmatically list and change Window's long and short date formats identified in the Regional Settings Control Panel applet.



Change Screen Resolution and Shut Down Windows from VB
Change the screen resolution using the ChangeDisplaySettings API and shut down Windows using the ExitWindowsEx API. All from Visual Basic



Create a Transparent Bitmap using the BitBlt API from VB
Create a Transparent Bitmap using the BitBlt API from VB.



Create Transparent Form Backgrounds and Add Bitmaps to Menus
Create gradient color or Transparent form backgrounds and add bitmaps to your menus and disable the close (andquot;Xandquot;) button in the caption bar using VB.



Stop the cursor from moving off your VB form.
Stop the user from moving the mouse (cursor) off of your VB form.



Perform Serial Port Communication from VB.
Perform serial port communication with Visual Basic.



Visual Basic code for the Classic Connect 4 Game
Visual Basic source code for the Classic Connect 4 Game



Copy the Desktop Wallpaper to your VB Form's background
Copy the desktop wallpaper to your VB form using the PaintDesktop API



Create a System DSN (Data Source Name) from VB
Programmatically create a system DSN (Data Source Name) from VB



Determine Locale Aware Date and number separators from VB
Determine the date and number separator characters used for the regional settings in effect on your computer.



Perform interprocess communication using the DDE Management Library from VB
Use the Dynamic Data Exchange Management Library (DDEML) from Visual Basic to perform interprocess communication via shared memory.



TheScarms Visual Basic 6, VB.NET, C#, ADO, and ASP.NET Code Library
TheScarms.com is dedicated to providing solutions to hard to solve programming Issues.



Digitally Sign and Verify Files with VB
Provide file security by digitally signing and verifying files using the Crypto API functions from VB.



Browse for Files, Folders, Computers and Printers from VB
Browse for Files, Folders, Computers and Printers from VB using the SHBrowseForFolder API.



TheScarms Disclaimer and Legal Stuff
TheScarms accepts no responsibility for damages done by material presented on this site.



Create forms you can dock to the edges of your main form
Create a Visual Basic form that can be docked to the edges of its parent form.



Dynamically add controls to a scrollable VB form
Dynamically add controls to a scrollable form and respond to their events in VB.



Edit Data in a Read Only FlexGrid in Visual Basic
VB code to Edit Data in a Read Only Grid such as the Microsoft FlexGrid



VB Algorithm to Securely Encrypt and Decrypt Strings
Safely and securely Encrypt and Decrypt strings with Visual Basic. Great for storing passwords, PINs,...



Enumerate Top Level Windows from Visual Basic using EnumWindows API
Enumerate Top Level Windows using the EnumWindows API from VB. Get Class, title, and handle information for a window.



Use the Excel Object from Visual Basic to populate spreadsheets
Use the Excel Object in a Visual Basic application to populate Excel spreadsheets with data and formulas.



Use ADO to read Excel worksheet data into the VB DataGrid
Read Excel worksheet data into the VB6 DataGrid using ADO



Extract Icons from EXEs or DLLs with ExtractIconEx from VB
Extract Icons from Exe's or DLL's using ExtractIconEx and draw them to a VB picturebox with Windows DrawiconEx API



Copy, Move, Delete Files and Folders Using SHFileOperation API from VB
Copy, Move Delete Files and Folders Using the SHFileOperations API call from VB.



VB code to replace files that are currently in use
Delete, rename, or move files that are currently being used by the operating system.



Using the Scripting Runtime Engine's FileSystemObject from VB
VB sample to copy, move, delete files and folders with the Scripting Runtime Engine's FileSystemObject class in Sccrun.dll



Set File Creation, Modified, Last Accessed Dates from VB
Set a file's Creation, Modified and Last Accessed Dates from VB.



Retrieve File Version Information from VB
Programmatically Retrieve File Version Information from VB using the GetVersionInfo API



Watch and automatically detect changes to a file or folder from VB.
Watch and automatically detect changes to a folder using the FindFirstChangeNotification API from VB.



Perform FTP using the Internet Transfer Control from VB
Transfer files to and from a remote computer via FTP using the Internet Transfer Control and VB



Create Irregularly Shaped Forms and Forms With Holes from VB
Create irregularly shaped forms and forms with holes in them from VB using Windows regions.



Set tab stops, auto search, add/remove items from listboxes
Listbox functions like setting tabstops, adding, removing, deleteing, and highlighting items with VB



Get your Network Interface Card's MAC Address from VB
VB code to get your PC's Network Interface Card's MAC Address.



E-Mail Enable your VB Apps Using MAPI
E-mail enable your VB applications using MAPI. Use MAPI to attach files to your emails.



Tile and Center Images on MDI Forms in VB
Tile images across the background of MDI form or center an image on an MDI form using VB and the Win32 API.



Retrieve Windows Memory Statistics and System Resources from VB
Determine Windows memory statistics and system resource information from VB



Move a Form With No Title Bar via GetCursorPos and SetWindowPlacement
Move a VB Form With No Title Bar via GetCursorPos and SetWindowPlacement



Create A Skinnable MP3 Player with VB
Visual Basic source code for a skinnable MP3 player.



VB MultiComm Communication Software example
Learn Modem Commands, modem communication methods and other things associated with MSComm control with the help of this project.



Object Oriented Programming and Visual Basic
An article discussing Object Oriented programming language features and how they are implemented in Visual Basic.



Decode OLE Automation Errors with FormatMessage API in VB
Decode OLE Automation errors using the FormatMessage API from VB



Change the Style of a Control, Create Owner Drawn Controls from VB and the Win32 API
Change the Style of a Control and Create Custom Owner Drawn Controls from VB with the help of the Win32 API and subclassing.



VB source code for a Paint Application
VB Paint Application containin filters, effects, many tools, a sizeable toolbox and screen capture, twain and other tools



Pass Data Between two VB Applications without COM.
Pass a string or data between two VB applications without using COM.



Locate an Executable or the Windows Special Folders and get their Short Path Names
Determine location of an executable, the Windows and System folder paths and get their Short (DOS 8.3) Name equivalents



Read and Write the Windows Registry or Ini Files from a VB module
Read and write the Windows Registry or Ini files with this Visual Basic .bas module.



Start Control Panel Applets With Rundll32.Exe from VB
Use Rundll32.exe to start control panel applets and dial up networking or to format floppies from Visual Basic.



Enumerate all Currently Running Processes with CreateToolHelpSnapshot from VB
Enumerate all processes currently running on Windows 9x and 2000 with the CreateToolHelpSnapShot API and on NT with the PSAPI.dll functions



Create your own animated sprite screen saver in VB
Learn how to work with graphics and create your own animated sprite screen saver using Visual Basic.



Enter and Run Source Code Statements at Runtime Using the Script Control from VB.
Enter Source Code into your compiled VB executable and run it using the Script Control.



Create a Scrollable VB Form
Create a scrollable Visual Basic 6 form.



Open/Print Files, View Web Sites, Connect to the Internet from VB
Open/Print Files, View Web Sites, Connect to the Internet. Using ShellExecute and FindExecutable API functions from VB.



Create Shortcuts (Shell Links) with the iShellLnk Interface from VB
Create Shell Links or shortcuts from Visual Basic with Explorer's iShellLnk interface.



Create Desktop Shortcuts and Refresh the Desktop from VB
Determine the location of special folders and create desktop shortcuts. Then refresh the desktop programmatically from VB.



Restore a Window to its Normal State or Minimize all open windows from VB.
Restore a minimized or maximized window to its normal state using the ShowWindow API from VB. Minimize all windows in one shot.



VB code to get the Path of Special Folders in Windows XP
Determine the location of Windows XP special folders using SHGetFolderPath API in VB6.



Call the MS Word Spell Checker from VB6
Use the Microsoft Word spell checking cababilities from Visual Basic applicaitons.



Safely Terminate a running application from VB by closing all its Windows
Safely terminate a running application from VB by closing all its windows using the SendMessage API



Disable Ctrl-Alt-Delete from Rebooting a PC on Windows 9X or WinNT machines
Stop Ctl-Alt-Delete from rebooting a Windows 9x or Windows NT PC



Subclass Text and Combo boxes to Display PopUp Menus in VB6
Subclass a textbox and combobox to hook into windows messages stream using setwindowlong and callwindowproc APIs from VB6.



Subclass a VB6 form to trap Windows Messages
Subclass a VB6 form to hook into windows messages stream using setwindowlong and callwindowproc APIs.



Create a Numeric/Upper Case Textbox with Undo Capabilities
Create a textbox in VB through subclassing that allows only numeric or uppercase values and has undo capabilities.



Subclass VB6 TextBox Controls Using WithEvents
Subclass a VB6 textbox control using WithEvents to allow for Multicasting



Synchronize Your System Clock to an atomic clock from a Network Time Protocol server
Synchronize your System Clock with an atomic clock from one of the many NTP (Network Time Protocol) servers



Setting System Parameters and Accessibility Info with VB Using SystemParametersInfo API
Read and set Windows system wide information the SystemParamtersInfo API from VB. Correctly determine the version of Windows.



Read System Metrics Information Using GetSystemMetrics API form VB
Determine the width and height of any item displayed by Windows using the GetSystemMetrics API from VB



Add Your Application's Icon to Window's System Tray
Add an application to the system tray area of the taskbar using Shell_NotifyIcon API from VB and respond to mouse events occurring on your icon



VB code to add an icon to the System Tray
Add your VB application's icon to the System Tray and respond to mouse event using the Shell_NotifyIcon API



Create translucent VB forms, animate how they open and close and tile an image across a form
Create translucent VB forms, animate how they open and close and tile an image across a form's background.



Create code based counting and callback timers
Create code based counting and callback timers that performs better than VB timer control. The timers can fire once or repeatedly raising events in your application



TheScarms Windows Operating System and Visual Basic 6.0 Tips
TheScarms Visual Basic Code Library VB 6.0 Tips



TheScarms Windows Explorer Tips
TheScarms Visual Basic Code Library - Windows Explorer Tips



TheScarms Windows File System Related Tips
TheScarms Visual Basic Code Library - Windows File System Related Tips



TheScarms Internet Explorer Tips
TheScarms Visual Basic Code Library - Internet Explorer Tips



TheScarms Windows Menu Related Tips
TheScarms Visual Basic Code Library - Windows Menu Related Tips



TheScarms Windows Mouse and Keyboard Tips
TheScarms Visual Basic Code Library - Windows Mouse and Keyboard Tips



TheScarms Windows OS System Related Tips
TheScarms Visual Basic Code Library - Windows OS System Related Tips



TheScarms Windows XP Tips
TheScarms Visual Basic Code Library - Windows XP Tips



Create and play wav files from VB
Programmatically create and play wave files from VB.



Create a Multi Line ToolTip Window from VB
VB code to create multi-line tootip windows which evaluate text formatting characters.



Make Desktop Icons' Text Background Transparent
Change the text color and text background color of your desktop icons using VB and several Win32 APIs.



VB6 String Functions, Array Assignment, Dynamic Control Additions
Example of new Visual Basic 6.0 String Functions, Array Assignment features, Dynamic Control Addition and Call By Name.



Comparing VB.NET to Visual Basic 6
A Comprehensive discussion of the differences between Visual Basic 6 and VB.NET.



TheScarms Articles and Tutorials
TheScarms Articles and Tutorials on XML and AJAX



TheScarms Visual Basic File System Operations
TheScarms Visual Basic/Win32 Code Library has a generous code library covering Visual Basic and Win32 APIs. It includes source code, screen shots and instructions.



TheScarms Code Library - Working with VB 6.0 Forms and Controls
TheScarms Visual Basic/Win32 Code Library has a generous code library covering Visual Basic and Win32 APIs. It includes source code, screen shots and instructions.



TheScarms Visual Basic Code Library
TheScarms Visual Basic/Win32 Code Library has a generous code library covering Visual Basic and Win32 APIs. It includes source code, screen shots and instructions.



TheScarms VB6 Excel and MS Word Samples
Work with the Excel and MS Word objects from VB6



TheScarms VB6 Multimedia Related Samples
Perform image editing, work with graphics, create and play wave files, create a skinable MP3 player



TheScarms Code Library - VB6 Process/Thread Samples
TheScarms Visual Basic/Win32 Code Library has a generous code library covering Visual Basic and Win32 APIs. It includes source code, screen shots and instructions.



Programmatically Register and Unregister ActiveX Dlls and OCXs from VB
Programmatically Register and Unregister Activex DLLs and OCXs and COM components from VB without using REGSVR32