|
32 Top 100
..Most used VB code
..Search
On
'Top100' to view the full snippets
Applications
Associate an extension
With
the app
Create a shortcut
To
your app
In
any folder
Create desktop shortcut
Dialog
-
color
-
using API
Dialog
-
file
-
using API
Dialog
-
folder
-
using APi
Dialog
-
font
-
using API
Open
Help file
Put
app icon
In
system tray
Put
app
In
Explorer context menu
Put
app
In
SendTo menu
Start
New
application
And
wait
For
it
To
finish
Startup
With
Windows (use wshom)
Test
If
application
Is
running within IDE
Arrays
Cycle through an
Array
Randomly shuffle an
Array
Remove element from
Array
by content
Remove element from
Array
by position
Search an
Array
Clipboard
Copy image
To
clipboard
Copy text
To
clipboard
Controls
All
-
automatically highlight content
On
focus
All
-
capture any key
All
-
force lower
Case
As
keys are entered
ComboBox
-
create MRU
For
dropdown list
Imagelist
-
add images at run time
Richtextbox
-
find
And
replace
Richtextbox
-
first visible line
/
position of 1st
Char
On
the line
Richtextbox
-
merge contents of two richtextboxes
Richtextbox
-
prevent flicker of richtextbox during reposition
Richtextbox
-
word wrap
Toolbar
-
responding
To
button selection
TreeView
-
traverse the tree
Date
-
Time
Time
-
elapsed time between 2 dates
Timer
-
milliseconds between 2 events
Files Binary
Read
/
Write
Data
To
a specific location within the file
Read
/
Write
entire file at once
View
In
Hex
Format
Files Text
Read
text file all at one time
Read
text file one line at a time
View text file content
Files
Create full pathname
Extract file name from full path
File exists
File properties (size
/
Date
/
attributes)
Folders
Delete a folder
And
its subfolders
Folder exists
Get
list of drive letters
Get
Type
of drive
Open
DOS window at folder
Open
Window at folder
Open
Windows Explorer at folder
Forms
Center a form
Keep form
On
top
Set
min
/
max size of form
Splitter, horizontal (form
-
based)
Splitter, horizontal (splitter bar)
Free Controls
And
Tools
Free programming tools
Graphics
Convert between
Long
, RGB, VB,
And
Web colors
Get
JPG
/
GIF
/
BMP
/
PNG image size
Get
screen resolution
Gradient
-
apply
To
a picturebox, 2 colors, 4 directions
Gradient
-
apply
To
form, 2 colors, 4 directions
Gradient
-
full spectrum
Overlay an image
Read
/
Write
/
display
/
convert GIF
/
JPG
/
BMP
Resize an image, keeping aspect ratio
Screen capture
Set
wallpaper
Internet
Check
For
Internet connection
Create URL shortcut
Create web page (HTML) from code
Download file from the web using API
Download web page (capture
As
String
)
Get
remote file information
-
size,
Date
Open
a web page
In
Default
browser
Send email using
Default
app
Upload file (Freeware EZ
-
FTP)
Upload file (Internet Transfer Control)
Math
Random
Integer
within range
Round
To
2 decimals
Round
To
n decimals
Multimedia
Play CD (MM control)
Play sound (API only)
Play sound (MM control)
Play video (MM control)
Record sound (MM control)
Navigation
List files
And
folders
-
API (pattern)
List files
And
folders
-
Dir$ (pattern)
List files
And
folders
-
FSO
List files
And
folders
-
SysFileControls
Printing
Color printing
Print
images, positioned
And
scaled
Print
preview
Registry
Clear application settings from registry
Edit registry key
Use registry
To
save program settings
Security
Checksum
Encrypt a file (uses password)
Encrypt a
String
(uses password)
Sort
QuickSort
Strings
Convert
Byte
Array
To
String
Find text before
/
between
/
after two target strings
Find
/
replace
Split
String
into
Array
System
Get
computer name
Get
name of special folders
Get
user name
Get
Windows
And
System directories
Get
Windows version
Reboot, restart
Or
logoff system
Reboot, restart
Or
logoff system (XP only)
|