Results for "Category: Miscellaneous"
This source code will search for a certain string from a TextBox (can be modified to search from any string-bearing control, etc.). Once the string is found, a message box will appear letting you know that the string was found, and then the string will be highlighted.
This source code is a jump in revisions from 1.0a to 1.1a of neXus. For those of you that don't know, neXus is my coordinate-mapping application inspired by an original idea from Tyson Westby. Anyways, the changes in 1.1a are that you can have a visual confirmation that you have marked a coordinate. However, unfortunately, this meant that I had to take some of the source code out. Some of the old functionality was lost, and some of the new functionality doesn't work correctly. Anyways, this application allows the user to map coordinates for irregular-shaped Visual Basic forms without the need for bulky ActiveX Controls. As always, leave feedback and vote!
This is the source code to the largest project that I've ever worked on -- neXus 1.0a. neXus is based on an application that was created by Tyson Westby about one year ago. It's function is to allow Visual Basic programmers to modify the shape of the Form without having to include a bulky ActiveX control. The way it did this was to harness the power of the Windows GDI, and other API calls. But don't take my word for it, download the source code and try it out! And please, take the time to vote and leave feedback!
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: [email protected]
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.