Advertisement

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

2002VB #17244
Cool screen wipes

You can achieve some cool form wipes with judicious use of the Move method. For example, to draw a curtain from right to left use this routine. It is also possible to wipe a form from bottom to top, and from both sides to the middle, using similar routines

2002VB #17247
Dragging a form by a control

This code is reusable and small enough to paste into whatever you're doing and instantly have a form that has no need for a title bar.

2002VB #17249
Create a form bigger than the screen!

The primary focus here is to allow you to display forms that are larger than the screen can show. Need an 8½" x 11" Form? NO Problem!The size used in this example is 8½" x 11", but it could just as easily be landscape, envelope, or any needed size.

2002VB #17263
Clear all textboxes on a form at run-time

handy code for clearing all text box controls at run-time so you don't have to bother doing it at design time. http://137.56.41.168:2080/VisualBasicSource/vbworkingwithtextbox.txt

2002VB #17267
Getting a Reference to a VB 5.0 UserControl

Visual Basic 5.0 allows you to use UserControls to create ActiveX controls in your projects. The following code snippet does two things: It gets a reference to the form in which a UserControl is placed, and it gets a reference to that control on the form. by David Mendlen

2002VB #17268
Full example of Drag and Drop within a application

Suppose you have a listbox with some elements and want to drag&drop a selected one into a textbox. http://137.56.41.168:2080/VisualBasicSource/vbdraganddrop.txt

2002VB #17269
DegreesToXYsubroutine

The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.

2002VB #17278
Exclusive Mode (Updated)

This function allows the application to enter and exit exclusive mode. In this mode any message boxes or prompts from Windows and other applications will not show up infront of the program. This is useful when you don't want anything to come up infront of your application window.

2002VB #17279
IsLoadedForm

Tells whether a form is loaded or not

2002VB #17280
Change Form Shape

Can Change The Shape of any form

2002VB #17281
Make Form Transparent.

Makes a Form Trans Parent

2002VB #17282
ComboBox on Toolbar

This subroutine shows how to Really put a ComboBox (or any control with a hWnd) onto a ToolBar (or any other control/window with a hWnd).

2002VB #17286
Easy tiled-image form backgrounds

This code, which was inspired by a similar snippet of code by Ian Ippolito, permits tiling an image onto a form's background. This variant, though, resides in a module and is called by a form instead of residing within the form's code itself. This permits using the feature project-wide without redundant code all over the place.

2002VB #17287
Tiled backgrounds on an MDI parent form? Yep!

This code, which was inspired by a similar snippet of code by Ian Ippolito, permits tiling an image onto an MDI parent form's background. Getting an image onto an MDI parent is easy. Getting a tiled one is another story. We could try using a Clipboard operation, or build a big tiled background and save it and then laod it into the MDI parent's Picture property, but these are nasty, anal-retentive, and likely to simply not work. This code, however, works...

2002VB #17297
Advanced Shape Generator

This program creates awesome random shapes with your given specifications. With this, you may never see the same shape twice, and every one looks great! This I could proudfully say is an awesome program -- IMPRESSION IS GUARANTEED!!! Please let me know how you like it.

2002VB #17309
aan Example of Pop-Up menus

Ever wounder how to make those neat pop-up menus like you see when you right click on something? well, here is an easy to follow example!

2002VB #17330
DartBoard Control

A while ago I was developing a dart statistics program, unfortunualy sometime later I stopped developing. But I already made an control to handle the dartboard. It's not completly finished, I still have to add a dart throw animation in it. But still I think it's ready for use. Some features: - Board is resizable - all colors are adjustable - all ring sizes are adjustable. Throw dart: - by mouse clicking on the board - by entering the darts x,y location - by entering the darts value. I found it a waste of good programming to leave it on my computer without any use. I hope some of you can use it in your own applications. If someone can send me a good animation of a dart in flight, I would appreciate it and I would put it in the control as well.

2002VB #17339
Coolbutton

It's a coolbutton. :) Those flat things that MS uses now. This one supports setting images for mouse over, mouse down, mouse up, drawing bevels for those 3 states, setting the colours of the bevel, automatically generating the mousedown and mouseup images by varying the brightness of the original, setting text positioning... lots of stuff.

2002VB #17351
3D-Stars in a Form

Draws a nice 3D-Starfield in a Form (uses X,Y,Z positions) width a very short code Shades each star depending on the distance.

2002VB #17352
rsform.bas

This .bas module allows you to re-size your form and all the controls re-size with it. I kept looking for code out on the internet that would do this right but I was never successful. So, I wrote this to eliminate the need for any ocx's or dll's. It resizes the SStab control which I found was a problem with most resizing routines (check it out for yourself). It also handles lines. It's also alot quicker. All you have to remember is two things. First, add the resize module (rs_form.bas), Second, Add one line of code (ResizeForm Me) to each form you want to re-size.

Languages
Top Categories
Global Discovery