Visual Basic 4 / 5 / 6 Code Snippet Index

can any one tell me how to open image of .CAL extension or .TIFF extension in vb6

Type BITMAPFILEHEADER bfType As Integer bfsize As Long bfReserved1 As Integer bfReserved2 As Integer bfoffbits As Long End Type Type BMPInfoHeader (Read More)

hdd physial id

i run vb6.0 code in xp for getting hdd physical id and it run ok. but when i run same programme in vista it does not display any hdd physical id. please solve the problem (Read More)

TempMsg ( Tempory Message )

Easily allows temporary message to be displayed on any label for a programmable length of time. This is a very simple way to display a temporary message on an existing label (or textbox)without doing a lot of coding. (Read More)
-3

VB Simple Tasks with simple code

There are alot of things which doesn't need to type alot of junk code while our task can be completed without declaring useless variables, constants, etc plus they use alot of resources when we run our executable so i decided to put some simple codes here which can achive our task easily (Read More)

Select Printer From List

Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free. (Read More)
1

string calculator

this function will calculate a string formula which support cos, sin, log, abs, mod, and example : /(5 mod 4) and you will get the answer, and this function it really easy to plugin with you code. (Read More)

Scanner :Scanning image of a Picture control to a Rich Text Box

Hello friends i made a small program like a scanner it will scan an image file to a Rich Text Box. My friend helped me in providing the code to access the pixels of an image.Hope you will like the code. Try it .... This need : Reference files : (Read More)

Encrypt and Decrypt

This is code for Encrypt and Decrypt. this a simple logic of encryption. Please leave comment or feedback if this code helps you. Thanks. Jery. :) the encrypt function place in a module. This Code needed : 1 Module 1 combo box (For input before encryption) text1 in this program 2 label (For... (Read More)

Number To Word

This code snippet convert Number to String in VB6. For instance input 100 will be return as Hundred, It converts upto Core.... (Read More)
-2

code to split (and reconnect) an Access database (part 1)

This code is to split a Microsoft Access database and re-connect it on launch so that you can use Access on a multi user network...After Splitting the database manually, place the following code in the form that launches when the database is launched... (Read More)
-1

Connect to database using ODBC and dot net.

This snippet shows you how to connect to a database using ODBC in vb.net 2005 (Read More)
1

Printing an ADO recordset into Excel

Here's possibly the single most useful function that I use. It simply takes an ADO record set and dumps the column names and row values into an Excel worksheet. To use it make sure you have Excel marked in your project references. (Read More)
-1

Simple Date Time(s)

An example of using the ToString() DateTime Strings to produce common date & time output formats in Visual Basic.Net (Read More)

Swap

Swaps Two Elements Of An Array (So that say, indice1's value would become indice2's value, and vice versa). Simple Code Piece Really... (Read More)
-1

This is a visual basic 6.0 wav sound player class that plays any selected sound file in .wav format. It has the filename property to select the file and play property to play the sound file.

This is a visual basic 6.0 wav sound player class that plays any selected sound file in .wav format. It has the filename property to select the file and play property to play the sound file. Visit http://www.mycplus.com for more codes. (Read More)

Autonumber in Access (VBA)

Access 200,XP and 2003 (Read More)

Password protect indiviual buttons on the Access Switchboard

This is the coding needed to password any button on any switchboard from used in Access Database (Read More)

Controlling 16x2 LCD module using VB6.

Here is some code that will help you connect a LCD module to Parallel port of a computer. Almost any 16x2 LCD module should work. It has complete VB6 code. It works on Windows XP very well. I have used hwinterface.ocx from Logix4u.net that provides basic Inport and OutPort functionality (Thanks... (Read More)

StringCalc

Visal has contributed code for computing a formula. I have updated his code to reflect vb.net coding style. I have also refactored the code, so it is easier to understand. I have not checked the code. The vb.net project files are as attached. Jerry Dusing (email: jerrydusing@yahoo.com) (Read More)

Get HD Info

Gets the names of all the partitions in a system. Note that media must be in every removable drive for this to work (can be fixed easily) (Read More)

Get computers on network

Get computers on network (Read More)

Clearing Controls & Forms in Access (VBA)

Clearing Controls & Forms in Access (VBA) (Read More)

Getting the Regional Short Date Format

Uses the API to get the regional short date format from the PC (Read More)

Random Password Generator

A Simple Function To Generate A Random Password Of A Given Set Of Characters (Read More)

Add Icon to Windows SysTray

There are probably a few different version of this...here's the one I use which I find pretty simple: (Read More)
-1

String To Array

Another Small And Simple Function To Take Each Character of a string, and put it into an Array, This helps significantly when you need to sift through a string. This Function Uses The spush (String Push) Function, Also In Code Snippits. (Read More)

String Pop

The Relative of push is pop. Pop removes the last item in an Array, and returns the value into a single (scalar) variable. Again, due To VB Limitations, this one works on strings. (Read More)

String Push

Simple Function To Simulate The Push Command, due to VB's limitations, This one is Specific To Strings. (Simple enough to modify for integers or variants, etc) (Read More)

Get the name of this computer

Get the name of this computer (Read More)

Delay

This is a very basic way to make a delay that someone new to VB might be able to use. (Read More)

code to validate data in Access withOUT using messageboxes

This code uses field level validation to check for data in fields in an Access form, and instead of using message boxes (as the "Validation Rule" and "Validation Text" properties of a field (in the table design window) do, it turns the associated label and control (textbox/listbox/combobox)... (Read More)

code to split (and reconnect) an Access database (part 2)

Place the file with part one of the code on the server. This part of the code gets placed in a batch file (text file with the extension *.BAT) and placed on each client's machine. Again, you will need to change the paths used to the real paths on your network. This will get a fresh copy of the... (Read More)

Simple CLS for Resizing CTLs on a FRM

Simple CLS for Resizing CTLs on a FRM (Read More)

VBA Validation Module

VBA Validation Module (Read More)

Forum Tools


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC