Results for "Category: Miscellaneous"
Are you fed up with the fact that you can only display one line in vb tooltips. This class allows multiple line tooltips. It also allows you to specify the Maximum Width of the tooltip, the delay until it appears, the length of time it is visible and whether the tooltip is centered below the control. I have added support for setting the font that is used as well.
Performs compression/decompression on a byte array using run length encoding (RLE). This is an EXTREMELY FAST algorithm, implemented in a very efficient way. Many people have been emailing me about this so here it is.
Take a picture of the screen
Create Flash movies and allow them to launch ANY associated file on your system. Ideal for use as a CD menu and the like. (Excuse the name, I always call Flash, Shock because I use ShockMachine a lot :-0 )
This is an example on how to make your programs have a trial counter on it.This example uses VB's "SaveSetting" and "GetSetting" to the number of times the program was opened. I made a function in here to detect how many times it was open and if the number of times open is greater than the number you specify, then it displays a "Trial Over" message and exits the program. And also, if you wanted to add a "Register" part, I Included a "Reset TrialCount" feature so if they register it, make it "Registered" and stop the trial count. This is perfect if your working on a program and want it to be Shareware.
This is a must see. This project lets you Add objects to a form and lets the User move the object anywhere on it, I also made it so that the object couldn't be moved off of the form. You can also Rename or Delete the object by Right Clicking them. The best thing about this is that you and Load and Save the Objects to/from a .dat file, It saves each open Object's: Top position, Left position, Caption, and Visibility and then is able to load that info. This is a perfect example For you programmers who want to make a program that lets The user move objects around on the Form. See the Screen Shot..Here's an example on how this is useful..Visual HTML making programs...Like FrontPage or Macromedia DreamWeaver...They let the user add objects and lets them move it around. (Input Button, Option Button..Checkbutton...etc
This function will let you make a percent bar without a vbx. Now you don't have to add a vbx to your program making it a bigger hassle, plus you can now pick any color percent bar you want
This code will disable your program after a certain number of runs of the program. more info: worm@thepentagon.com
Ever wanted to implement your own wizard but thought that the logic to manage all the different panels would be too complex? Here's the code you've been looking for! This class implements a wizard engine. You can use it to manage all the displaying of any number of panels for your own wizard. All you have to do is create the individual wizard panels. Assign the panels to the WizardEngine along with the Previous, Next, Cancel and Finish buttons and you're done. The WizardEngine handles the rest!
Want Attention? Let the title bar of your program blink!
Did you ever what to time something up to thousands of a second. This is not possible by using time() and timers at all. This little class (only uses 3 variables) can time up to a thousands of a second with your CPU clock frequency. There's a little example program also shows the difference between using: {if VarX "" then} AND {if Len(VarX) 0 then}. The last one will execute between 20-25% faster. The timer can show this in fractions of a second.
This allows a VB program to capture either the screen or the program window. It has been tested under Win95 and NT4.0. It derives from a routine by Dan Appleman (VisualBasic 5.0 Programmer's Guide to the WIN32 API, page 303) which unfortunately does not work reliably under all conditions. Dan Appleman's exhaustive preliminary tutorial, though, is all it takes to understand the code.
This is a simple demo on how to implement the use of the keyboard's arrows keys to scroll a picture box. It also shows how to set the Max property of the scrollbars in order to work properly.
This code takes every font from the computer it is run on, and places it into a combo box. (not using printer.fonts but using screen.fonts)
This revised code finally supports the MP3 "Genre" tag (WinAMP 2.22+ compliant). Loads of you have emailed me requesting this facility - I think this is the first such VB code to support it! Easy to implement and the new genre routine is compact. It was a right pain in the arse collecting the Genre descriptions ;-) Note:- A demonstration app is availble from my homepage...
This function will tell you if your form is loaded (instantiated) or not. If you use the form's "Visible" property to determine this, the form is instantiated if it's not already loaded. This results in the form's "Load" event being executed unnecessarily. This function has none of the above overheads...
Send E-mail without borrowing another programs interface...... Even send it in the background with one line of code.
This class module, complete with demo project, will allow you to easily scroll a large picture box inside a much smaller one. This can be extremely useful when space is something you have little of.
I've been asked several times how to print 1 line at-a-time to a dot-matrix line printer. The existing VB print daemon does the buffer thing and only supports page printing to an inkjet/laser printer. Here is the link I found at Microsoft that explains how to print 1 line at a time. http://support.microsoft.com/support/kb/articles/Q175/0/83.asp? Go to the website and cut/paste the code.
Really great code for MOVING CONTROLS AT RUNTIME. This means that the client can customize the interface of your program at runtime. Really nice touch to your program. If you like it and think it is useful, vote for it, if not, email me at a_shimoon@hotmail.com and give me some constructive critisism! Thank you =) Armen Shimoon