Results for "Category: Custom Controls/ Forms/ Menus"
This is just a cool as feck clock its a must download. you will need to get some pics for it though but the code works.
The Purpose of this code is to demonstrate how to semi flatten objects.
It's a textbox XP Style with a cool border
4 cool user controls. !!! FOR ADVANCED USERS ONLY !!! NO SAMPLE PROJECT INCLUDED !!! Experiment with Properties Browser and methods and events. Look at the great events of GGCommand (I have not seen a Flat Command Button like mine on PSC yet :)) - MouseEnter and MouseExit. Supports transparent images and Caption and Picture position adjustments. Usage of GGMover: In MouseDown events of some object (Picture1 for example - set form and picture1 .ScaleMode to 3-Pixel): GGMover1.CaptureObject X,Y In MouseMove event: GGMover1.MoveObject Picture1,X,Y,True,True,0,300,0,500 In MouseUp event: GGMover1.ReleaseTargetObject If you have any problems with these user controls just write me an email to gogox@yahoo com or [email protected] This is my first submission to PSC.Enjoy
This tutorial demonstrates multiselect property of listbox as well as how to add and remove items properly. Absolute beginners will surely grasp this concept easily.
This code is the simplest form of Scrolling Text. It uses a Timer controle to make a label scroll. No consideration is required for screen cordinates or size or any other thing. Have a look at this simple scroll text application and Please do rate it :) I am watching from [email protected]
This will allow you to stop the form from being resized below or above a user-defined amount. Because it uses subclassing, it is totally flicker-free.
This code is an example of how to make a frame control.
The Switchboard:A method for handling subclassing in ActiveX controls f you develop ActiveX controls and intend to subclass or hook a window, you'll very quickly discover a problem when you attempt to site multiple instances of your control. The subclassing, which worked fine with a single instance of your control, now no longer works and is, in fact, most likely is causing a GPF. Why is this happening? The AddressOf operator requires you to place the callback routine in a module. This module is shared between all instances of your control and the variables and subroutines that the module provide are not unique to each instance. The easiest way to visualize the problem is to imagine a shared phoneline (or a partyline as we hicks call it) where multiple parties are trying to dial a number, talk, and hangup, all at the same time. What's needed is an operator, a routine that controls the dialing (hooking), the talking (the callback routine), and who routes information to the instance of the control that requested it. The Switchboard subroutine (see below) and it's supporting code provides a method for subclassing from multiple instances of your ActiveX control. It is not memory intensive, nor is it slow. It's biggest weakness is that it is hardcoded to intercept particular messages (in this case, WM_SIZE, to trap resize events) and will require some minor modification on your part to use.
To center all of your forms nicely on the screen, use this as the first line in the Form_Load event--resolution independent. 'note:call this function like this: Center_Form Me
Show how to make a text box not beep but do something else when I hit the Enter key. This code example makes nothing happen, for an extended period of time:
How do I get my application on top?To make your window truly topmost, use the SetWindowPos API call
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
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.
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.
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
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
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
The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.
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.