Advertisement

Results for "Category: Custom Controls/ Forms/ Menus"

2002C #8986
A code that mimics docking windows like vb

As far as I know this only works in vb5 and above. I submited this code previously, but the link I provided was incorrect, and that fact has just now come to my attention, so I am now putting this back up. You can download it either from here or my site. Either is fine. To get it from my site go to http://www.vbtutor.com/downloads/docking.zip or just download it here. Check out my site: http://www.vbtutor.com

2002C #9006
Dynamic Menu Control (Updated)

This control, when placed on a form, will allow you to dynamically create menus at runtime. I have included the code for the OCX and a simple test harness.

2002C #9008
Sort a ListView by Number or Date (Updated)

This code allows a ListView control to be sorted by Number or Date without having to use APIs (except to lock the screen)

2002C #9012
Using Transparent Images Example!

This example demonstrates what most people using Graphics in VB really needs, the use of Transparent Images in your programs that can overlap each other (using BitBlt), like GIF images do for example! This is the Ultimate Demonstration Program and it's REALLY easy to use. All the lines have been commented and turned into functions so you can easily use them in your programs. The program also shows how you can flip your images horizontal and vertical with just a mouse-click and includes a really fast code for creating masks (which you need when dealing with Transparent Images). This is a "must have" code not only for the beginners but also for EVERYONE using Visual Basic!

2002C #9014
Laser 3D 2

Laser 3D 2 includes all the features of the popular Laser 3D Effect, as well as three new transitions: Wierd draw, Weird Draw Slow, and Printer Scan. The code was translated, and FULLY COMMENTED (every line!). You must see this to believe it!

2002C #9019
ReBar (Internet Explorer - Like Toolbar) in VB

This is a class module that allows a "Rebar", or an Internet Explorer style toolbar to be made. It subclasses the Rebar and can trigger events when the rebar is moved, resized, clicked, mouse moved, and a lot more. The rebar can hold any VB control, even UserControls. THIS IS NOT MY CODE! I am simply passing Ramon's code, which can be found at www.zonecorp.com His code made this sample possible! You can e-mail Ramon at [email protected]

2002C #9025
On-Line Help Browser

Gives your users the look and feel of a help window. I use this method because I love Visual Basic, but with the run-time libraries required, the application download is large enough without adding help files to it. This way, I can store my help files on-line. This is also handy because I can update the help documentation without the user having to download any updates or patches!

2002C #9045
Set Icons for any Form or Program

With this code you can place any Icon in the title bar of any Window, just by reffering to a .ico file or to the position of the Icon in a DLL.

2002C #9062
Image Resizing

To automatically resize an image control in a frame control to view at an acceptable size. The full image is on screen even if the image is bigger than the screen.

2002C #9064
Improved Simple Analog Clock

Displays a basic analog clock on a form. CREDIT FOR THE ORIGINAL CODE GOES TO: Boriza I enjoyed his code so much I had to add a couple of quick improvements. Incrementally uncomment the code lines in the Form_Load event for different clock positions on the form.

2002C #9066
Enter to Tab

This code gives the "enter" key the same functionality as the "tab" key in a vb form. When the user presses the "enter" key, it moves the focus to the next control, based on the tab index order. Don't forget to set the KeyPreview property of the form to True. (My thanks to Pennington. His TabToEnter2 code laid the foundation for this code.)

2002C #9072
Circular Progress Meter 2.0 User Control

A circular progress bar/meter usercontrol with the following features: Solid color, fading colid color, or gradient blend One-, two- or three-color options Full-circle or arc of any size from 45 to 359 degrees Display value as a colored arc, a 'needle', or both Five styles of 'ticks' around edge, spaced however you want Display value as number or percentage--any font, color, and position! Customizable text shadow, too! Change background colors or use AutoMask to make background transparent Use custom picture backgrounds and mask pictures for transparency Show/hide border, change width Show/hide start line when value is zero Start at any angle (offset) Clockwise or Counter-Clockwise movement Change min/max values Fully scalable Also demonstrates various API graphics calls, getting the true color of a system color, use of mask color, using custom Enums for user control properties, scaling pictures and masks, and more. See screenshot: Large circle ('78') demonstrates a tricolor gradient, text with shadow, and dot-style ticks Wide control at top ('64') demonstrates tri-color fade, a 180-degree arc, hollow-dot ticks, needle, inset control border, and the flexibility of text positioning Large PSI gauge at right demonstrates custom picture & mask picture 'Fuel Gauge' demonstrates custom picture and value as percent Quarter circle ('53') at lower-left demonstrates 90 degree arc, box ticks, a bi-color fade, counter-clockwise motion, automask (it doesn't overlap the large meter) and custom shadow placement 'Wooden' meter near bottom demonstrates a 140-degree arc, offset angle, and custom picture as full background Black meter near bottom demonstrates border and line-style ticks with no background, and the effect of a tri-color fade where the start- and midcolors are the same (white) and the end color is different (red) Pink meter ('42') in center demonstrates the Automask by overlapping it's neighbors, and a tricolor fade where the start and end colors are the same but the midcolor differs. The reddish meter near the bottom ('65') demonstrates blends using system colors (in this case from ButtonFace to Highlight with ActiveTitleBar color as needle) Tiny meter inside PSI gauge demonstrates another use of Automask Enjoy! I welcome all comments, and please vote if you liked it or learned from it! Thanks!

2002C #9073
Circular Progress Meter UC

A circular progress meter with tons of options: Solid color, fading colid color, or gradient blend One-, two- or three-color options Start at any angle (offset) display value in center--any font/color change background colors show/hide border, change width show/hide start line when value is zero scalable change min/max values any shape you want, as long as it's a circle! Enjoy! I welcome any comments and suggestions. I want to try and convert this to a class as well.

2002C #9075
AutoComplete Combo

Access-like AutoComplete of a dropdown combobox or a simple combo box based on what's already in the list. Simple code but can handle backspace and delete and will finish the 'complete' on Enter keystroke or lost focus. Could easily be converted to a user control.

2002C #9078
cTextBox (Customized Textbox)

This all started when I noticed that I was constantly adding in code for when a textbox got focus, lost focus, etc. I decided that this would be a great chance to try my hand at making my own control. Fortunately, I spared PSC users the pain of some of the early versions of the control. I'm pretty happy with the latest version, so let me know what you think (and if you like it, vote for me! :-). Oh, I guess I should mention what it can do. It has several customized properties, such as "AutoSelect," which when True causes the text to be automatically selected when the box receives focus. Then there's "AutoUpperCase," which makes all entered text to be in upper case as it is typed. Then you've got "BackColor_Normal" and "BackColor_OnGotFocus." That's right, you can have it change to a different color when it receives focus (great for highlighting the current textbox when a user has a lot of fields to fill in). There's also "DefaultText" and "UseDefaultText." These are for having the text in the textbox revert to the default text after escape is pressed twice (the first esc is like an undo when you've started typing over something in the box). The latest feature is "TextType," which causes the textbox to only accept certain keystrokes, depending upon the property value. For example, there's AlphaNumeric, which allows everything, and then there's one for allowing only positive integers, and one for negative integers, pos/neg reals, alpha only, etc. This isn't like normal validation which checks the text after it's entered. This checks each keystroke and throws out the ones that aren't to be accepted. To run the tester .exe you'll need to register the cTextBox.ocx, or you can open the cTextbox.vbg file and run it from there. Let me know if you have any comments/suggestions/bug reports. Thanks! (and don't forget to vote :-) Oh! I just remembered, there's another property (two actually), "EntryTimerEnabled" and "MaxEntryTime." These are used to keep track of how much time it takes for a user to enter text in the textbox. If the maxentrytime is exceeded then the "EntryTimedOut" event is fired. This was added because my company often wants users to login to shop floor systems by scanning there badge ID and we needed to prevent the user from typing in an ID. Since barcode readers (or whatever type of scan device you use) are generally faster at generating characters than most typists, you can prevent typing in an ID by experimenting with the MaxEntryTime value.

2002C #9110
Real Window Snap to

This code produces a snap to effect exactly like Winamp. Uses POINTAPI type and GetCursorPos API. It gets the current x and y does a few calculations and snaps-to the screen edge. It does take into account for the taskbar but that may need some tweaking.

2002C #9116
Flaming Labels!!!

This proggy will set the text in your label box on fire! =)

2002C #9140
An Easy Way to Create a Transparent Form !

I provide an easy to create the non-rectangle form with usercontrol. We may use the control to design a non-rectange form or a desktop animation easily.

2002C #9141
Caption Fun

Learn to have fun with caption, eg: make it glow..... please visit my homepage 4 more app at http://www.cyberway.com.sg/~dyrws

2002C #9144
Animated GIF ActiveX control

This ActiveX allow you to use animated gifs in your applications. I saw examples of modules before but not ActiveX.You can make OCX file from this and use it in other applications.

Languages
Top Categories
Global Discovery