Here's the source code to an old Visual Basic program I wrote back in 2006 called "VB KeyAscii & KeyCode Finder". This program allows you to enter a character and it will give you detailed information about that character including its KeyAscii value, KeyCode value, and VB Constant Value (if there is one). It also allows you to create a range between 2 KeyAscii or KeyCode values so you can easily test for them. It also includes a number of reference materials for KeyAscii values, KeyCode values, the Shift argument, the Chr() and Asc() functions, and VB KeyCode constants. I also have my VB Key Functions module available as a seperate download.
Percent Calculator
Posted March 2nd, 2009 by Ryan Olbe Visual Basic Projects, Web-Based Tools 1 Comment »As I was going through my old Visual Basic projects I found this one tool I made on July 22, 2006 called "Percent Calculator". It was just a simple Visual Basic program I made that could tell you what percentage one number is of another number. For example, it could tell you what 22% of 86 is or what 32 is, as a percent, out of 50. Sure, these are just simple mathematical operations you could perform in any calculator but it was helpful to me, as a person who just learning Visual Basic for the first time, to see how these operations could be done. Since it was such a simple tool I decided to make a web-based version of it too. If you're one of those people who hates math and needs to calculate a percentage of something, give it a try!
Visit Percent Calculator (Web Version)
Going back through my Visual Basic archives, here's a old program I wrote on March 23, 2005 called "Auto Find & Delete". This program allows you to create a list of temp or junk files you delete on a regular basis, then easily delete them all with one click. You can also add windows shell access so that you can just right-click on a file to add it to your junk file list. I forget why I originally wrote this. I think somebody asked me to build it for them because they were tired of deleting hundreds of temp/junk files everyday manually by hand and they wanted a program that could do it for them. This program is a good example of how you can interact with the windows filesystem using Scripting.FileSystemObject, how to incorporate shell access, how to read and write to the windows registry, and how to create an "Open File" dialog using the Win32 API.
Using the winscard.dll PC/SC API in Visual Basic 6
Posted March 1st, 2009 by Ryan Olbe Visual Basic Projects 7 Comments »Here's some example code I wrote in July of 2008 that shows how a Visual Basic program can interact with a smart card reader using the winscard.dll PC/SC API. Most of the functions contained in winscard.dll I was able to get working except SCardTransmit which would always return ERROR_GEN_FAILURE (0x1F) or SCARD_E_COMM_DATA_LOST (0x8010002F) for some reason and I was never able to figure out why. If there's anyone out there who's interested in writing a VB implementation of the PC/SC API this would probably be a good place to start.




Recent Comments