Home Code Downloads
backofpc150x600b.jpg
Code Downloads
This page lists the different source code downloads available. You are free to use this code for any personal or business use as long as:
  • You credit me for any code used both by comments within the code and during runtime either in a help file or about box.
  • Any code from another author that I have modified also needs credit given to both myself and the original author as per above.
  • Your use of such code does not hold me liable for anything the code may do.


Excel Demo App Code Print E-mail

This program shows how to automate Microsoft Excel through Visual Basic.  The first section creates a new excel file, populates some of the cells, and does some basic formatting.  The second section shows how to open and make modifications such as deleting rows and columns.  The last section opens a Excel document and saves it as a comma separated values file (.csv).  Each step in the process is fully commented to aid in learning how to automate Excel.

Read more...
 
Delegate Example Code Print E-mail

This program was made to demonstrate how to use delegates for cross thread operations.  For example you want to run a process in another thread that does some time/process intensive task.  You want it in it's own thread so it doesn't lockup your user interface but you want to get status information back to your main form so you know where in the process it is.  Normally if you tried to update a status bar or text box from another thread you would get a "Cross-thread operation not valid: Control 'yourcontrolname' accessed from a thread other than the thread it was created on." error.  Using the code in this example you will see how to get around this.

Read more...
 
Image Adjuster Code Print E-mail

This basic image adjuster program uses the ColorMatrix Class of the System.Drawing.Imaging namespace to modify the brightness and contrast of a image.  It also uses the same class to convert a image to gray scale, sepia, or to a negative.  Examples of doing all 5 operations along with tracking if the image has been changed and if a file was dragged and dropped onto the picture box control are available along with all code being fully commented.

Read more...
 
Quadratic Equation Code Print E-mail

This is a very basic program to calculate the quadratic equation.  It has a couple try catch blocks in case there is a divide by zero.  You enter the three variables (A, B, and C) and it will give you the two solutions.  If either or both cannot be determined it will list this also.

Read more...
 
GZip Test Code Print E-mail

This is a very basic program for using GZip compression and decompression.  It allows you to select a file and a folder and it will compress the file, saving it with the same file name and adding a .zip extension.  The same program can be used to reverse the process, unzipping a file back to the uncompressed file.  There is very little error catching (zip files with other formats, files that already exist, etc) but it is a good base on using the compression available within the .Net framework.

Read more...
 
«StartPrev12NextEnd»

Page 1 of 2