Visual Basic > Code Snippets
A text effect
Conect to an Access database
Active window title
Add lines of text to a file
Check for admin rights for XP and 2000
API disable ctrl alt and del .Not XP or 2000
Retrieves the path your application is running from
Beep example
Binary to decimal and decimal to binary conversions
Blinking label
Capture desktop window
Capture window under mouse
Caret blink time
Cascade windows
Center a form on the screen
Change system colors
Change text color in a text box
Change the windows wallpaper
Change the windows wallpaper
Change windows color scheme
Check if a file exists
Checks whether a drive exists
Common dialog to list box
Decimal to binary conversion
Copy a file
Create a database
Create a file
Create a new directory
Create a share
Current system time
Date-Time applet
Decimal number to a radian, or a radian to decimal
This program deletes a file
Delete an empty directory
Delete files on a floppy disk
This program deletes a folder
Detect if media in drive
Detect if a sound card exists
Directory exists
Disable CTRL + ALT + DEL
Disable CTRL + ALT + DEL on Windows XP
Display a files contents in a text box
Display all drives
Display how many seconds windows has been running
Display information about a file
Display printers listed on the system
Display the day of the week
Display the IP address using WMI
Display the Open With dialog
Draw a chord
Draw a line
Draw an arc
Factorial function
Flashes Num/Caps/Scroll lock LEDs
Get the windows directory . You will need to add a reference to the Microsoft
Get windows system directory
Highlight all text in a text box
Displays your IP address
Launch a file with associated program
Launch Add New Hardware wizard
Launch format dialog box
Launch new hardware wizard
List all screen fonts
List printersin a combo box
Load a file into a textbox
Log on as different user
Loop through beeps
Minimize all windows
Move a file to the recycle bin
Move a window
Move cursor to a set position on the screen
Open a file for writing to
Copy contents of Drive A to Drive A
Open default browser with a url
Open display properties background
When the up key is pressed , notepad will open
Open start menu example
Operating system info
Pause your app for a given time
Play a sound using API
Quivering button
Random password generator
Read a file into a combo box
Rectangular form example
Removes a folder with no prompts
Program renames your computer
Returns the System folder
Reverse a string VB6 onwards
Create a round form
Round form example
Run a screensaver
Run control panel
Save a webpage to a file
To save text to a file
Save wmf to bmp
Screen capture
Screen resolution
Is the screensaver active
Scroll to bottom of text box
Select all text in a text box when it recieved focus
Shell out to browser
Show and hide the taskbar
Shut down your PC (Win 95 and 98)
Shutdown or restart
Shutdown Windows (Not XP)
Shutdown windows 2000
Shutdown Windows XP
Swap mouse buttons
System startup time
Tile an image
Flashing title bar effect
Total amount of function keys
Total no of colors
Transparent form
Type of drive
Unload all forms
View source code
WeekDayName example
Display the windows directory
Winmm example
- ActiveX
- Miscellaneous
- Applications
- Code Snippets
- Common Dialogs
- Special Effects
- Database Stuff
- Date Time
- Files Drives
- Forms
- Graphics Games
- Internet Stuff
- Multimedia
- Other
- Strings
- Windows