Open Default App for Any File
Handling links (or other file types) in your VB6 application can be a bit of a pain in the neck. The user may not use what you use to view text files. How to handle it?
Handling links (or other file types) in your VB6 application can be a bit of a pain in the neck. The user may not use what you use to view text files. How to handle it?
Some time ago, a budding young VB programmer was having a problem with random numbers not being random, but a predictable repeating pattern. It can be easily overcome, and here is how.
After surfing around the net, I’ve found very little information regarding installation of VB6 on Windows 7. Most of the information out there is for Vista, and most of it is queries for assistance.
Makes a multi-line textbox into a scrolling textbox, chat-style.
Get the username of the currently logged on user.
This code allows you to add a favorite to the IE 4 or 5 list of favorites.
This function will allow you to change the extension of files within a specified folder. You can either change the name of all files, or files with a specified extension. A reference to the Scripting Runtime is required. See code comments for details and example.
App.Path returns a string with the “\” character at the end if the path is the root drive (e.g., “C:\”) but without that character if it isn’t (e.g., “C:\Program Files”). Most of the time we need the “\” at the end, so this function saves you the inconvenience of adding it every time.
One question a VB programmer is asked a lot about, especially in a job interview, is the differences between let, set, and get. Now some of the advanced programmers out there might laugh, but you”d be surprised at how many beginning developers trip up on this. I”ve asked the question of interviewees myself. So, in hopes of helping out budding programmers,… Read More »
Get some extended color constants. Stuff like vbWhite, vbBlue are great, but even better is vbDarkGreen, vbPaleBlue etc… Original Author: CodeJack Assumptions I ran across this little tid-bit and thought it would be usefull to others. I can’t remember where I got it, but I’ve had it for a looonggg time. Code Public Enum exColorTypes ‘vbWhite = &HFFFFFF… Read More »