Results for "Category: Custom Controls/ Forms/ Menus"
Draws a B-Spline over a PictureBox while the user inputs a series of points with the mouse. It also allows to drag the Control Points of the B-Spline to modify it
This is an enhancement of Gradient Title Bar module that recreates in Win95 the look of Win98. The original module was downloaded from: http://members.tripod.com/cuinl/Tips/gradienttitle.htm. I've added the choice to use System colours by including the respective API constants. I also have simplified the usage by adding the SetBarColours routine, before in the form, now in the module.
This is a full customizable message box. You can make your own form design, buttons, icons, sounds and buttons caption. Thanks to David Crowell (davidc@qtm.net) for his excellent DWButton.
This function create a transparent area of dirrent shape (such as rectangle, Circle) in your form, you specify where and how big the hole is. Unlike most other trnsparant routine, this one not only let you see trough it, but also allow you total access access the things in the hole!!! Of course, You can make the entire form transparent or make you form C - shaped! Fully tested in VB5 and VB6.
After seeing the "Elastic" post below, I thought I'd release my ElasticForms module 'cause this one actually *does* resize the components on the form (even lines). It's pretty tight, fast and it even allows you to set a min width and min height for a form. A zip containing the source and an example project can be found on my home page...
This is yet another submission for printing, loading from the file and saving to the file from Listview, ListBox, ComboBox and all one Forms textboxes controls. There are couple changes for part of this code. Check the explanations, please.
This is something I made after seeing people request a way to make transparent forms. The nice thing about this though, is that it makes it so that all the controls are still visible! And it works with transparent shapes and lines too! This is a great way to make your programs stand out from the rest, you have to see it.
This code simply takes a picture of your desktop or a screenshot. I guess if you wanted to you could use this to view the desktop of a computer over a network, although that would be a bit slow. I hope this code is of some interest to some people Hope this helps.
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
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.
This code allows a ListView control to be sorted by Number or Date without having to use APIs (except to lock the screen)
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!
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!
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 Ramon@Zonecorp.com
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!
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.
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.
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.
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.)
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!