Advertisement

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

4_2005-2006 #150124
A Transparent Form That Works!

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.

4_2005-2006 #150143
A Way to take a screenshot

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.

4_2005-2006 #150144
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

4_2005-2006 #150170
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)

4_2005-2006 #150172
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.

4_2005-2006 #150177
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!

4_2005-2006 #150179
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]

4_2005-2006 #150180
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!

4_2005-2006 #150192
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!

4_2005-2006 #150196
Bezier splines

A simple Bezier spline implementation. Allows the user to select control 'points on a picture box and then draw a Bezier curve between them. NEW!! - User can now move control points!!

4_2005-2006 #150221
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.

4_2005-2006 #150246
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.

4_2005-2006 #150247
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.

4_2005-2006 #150249
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.)

4_2005-2006 #150267
List Box Function Demonstration

Demonstrates basic fuctions such as Add, Remove & Clear; but also some advanced funtions that use API tricks to find the index value for a string (or partial string); change an item in the list without knowing the index value in advance; and display a tooltip containing the complete name for items too wide to fit in the visible box (and only those items! Even checks for the existence of a scrollbar on the listbox). The comments in Instructions.bas will walk you though all the functions, and the code is heavily commented for the novice.

4_2005-2006 #150270
Center Form on *available* desktop area

Centers a form in the part of your desktop not taken up by the taskbar or other system toolbars. If toolbars take up half the screen, no problem. If they are on the sides or the top, no problem.

4_2005-2006 #150271
HSL<->RGB and Color Manipulation Routines

Routines to convert between Hue-Saturation-Luminescence values an Red-Green-Blue color values (Converted from C++). Also several unique routines using these functions to manipulate color such as Brighten, Invert, PhotoNegative, Blend, Tint, etc. ***NOTE: I have reposted this with the original sorce (now complete). I am working on and will soon submit this in class form, once comments are added to the source.***

4_2005-2006 #150272
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.

4_2005-2006 #150275
Circular Progress Meter 2.1 User Control (Minor Update)

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 &amp; 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! (UPDATED 3/24/2004: Fixed 'gap' on very small meters at some resolutions, Removed bug that caused crash when properties do not reload properly in IDE)

4_2005-2006 #150280
Multi-color LCD Control (Blue Knot)

Alphanumeric LCD Control with multiple foreground and background colors, fast or slow printing, option to pad lines with 'spaces'. Regular & Bold 'font', 2 levels of brightness. 13 pre-defined background colors (or 240 custom) and 7 background colors. Inspired by Peter Wilson's "Vacuum Fluorescent Display Simulator" (In fact I based the 'regular' graphics on his graphics.) Some characters added/redone and new 'bold' font. Colors tinted at runtime, not pre-made (for size and flexibility). Also adapted a bit of code by Kamilche (Load picture from byte array) to load JPGs directly from the resource file. Enjoy the code, and please comment/vote.

Languages
Top Categories
Global Discovery