Advertisement

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

7_2009-2012 #218952
A cool custom (form) msgbox using API to get icon

This is a form based custom message box. It uses a simple API call to extract icons such as vbInformation, vbExlamation, and etc. (you can even adjust the location of the icon on the form) to simulate a msgbox. There are less than 20 lines of code for the API call. This is pretty cool. So, check it out. I got this tip from a VB technical journal.

7_2009-2012 #218977
Resize Controls

This will show you how to Resize Control on a Form Regardless of how many controls there are Limitations are Menus cannot be resized along with controls such as CommonDialog.

7_2009-2012 #218993
Bar Chart ActiveX (Freeware)

BarChart.ocx is a bar chart control for stock market/commodity markets, etc. Full source code. You can chart the open, high, low and close, the median and/or any other value you can think of.

7_2009-2012 #218999
A very simply methode to make menu with icons

This sample add icones in the menu of your program but not use any API. The methode is only based on Imitation, very simple but good effect.

7_2009-2012 #219012
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.

7_2009-2012 #219024
Cool Flat/3D Button *MUST SEE*

Do you also think, that the normal CommandButton is a bit ugly? Here is a Button of the next generation...check it out!

7_2009-2012 #219034
Character shaped forms!!

Have you ever wanted to make your form's shape odd? Ok, there are several samples and programs around that can make your forms like a shape(circle, rounded box or something a little bit more complicated). But here is the example to make your form's shape to be ANY TEXT, in ANY FONT, in ANY SIZE and also any two colour's gradient. It's a really good example. Imagine you can shape the form not to be just plain text, but the shape of special fonts(such as Windings and Webdings). Just change the GetTextRgn function's variables(Font, Size, Text) and the variable Color1 and Color2. Easy. And the result is outstanding! You can also use the Chr$ function to add a text(this is useful for spec. chars).

7_2009-2012 #219045
Gradient module and sample code

Yes! A module that creates gradients! This BAS file will seperate a color into red, green, and blue with one sub, then create a gradient in another. This BAS allows horizontal, vertical, or circular gradients to be created for your VB projects easily! It also has a quality feature, if your gradient is particularly large. This BAS can write to any control that can be drawn on. No API! UPDATED!!! This code can now create a gradient in ANY SHAPE OR SIZE!!!!!!!!!!!! Also added in the update: Common Dialog boxes for color picking, click the from and to boxes showing the sample color to get a common dialog for the appropriate one. Also new, is the feature to save your gradient as a bitmap file!

7_2009-2012 #219088
TransForm your Form (Form Transparency)

This UserControl will take the existing Picture on any form and cut out the form wherever the MaskColor is found. This method is MUCH quicker than the pixel by pixel region creation I've seen on several sites. Features an AutoDrag property to allow the form to be dragged without a titlebar. Also features a PopupSysMenu method to activate the form's system menu at specified coordinates. No need to remove your Titlebar, TransForm cuts that out too, but it's still visible on the taskbar if you want. Comes with full source code and a demo project.

7_2009-2012 #219098
IsDirty

(Update 3/2/2000 I forgot to add the Enum To be used with the MyFormValuesOnLoad() Array But its in there now:) This code will aide in determining if Data has changed on a form. It serves many purposes. 1. To tell wether or not it is approriate to prompt user if they want to save changes they have made. 2. if the user wants to Reset or Undo changes they have made to a single text box, checkbox, or combobox Or all Controls at once(Works for control arrays as well).

7_2009-2012 #219099
FormWinRegPos

This Procedure can be used by AnyForm to Get or Save the Form Position from the Windows Registry using SaveSetting and GetSetting :)

7_2009-2012 #219100
Test IsDirty

(Added this Ziped Project to test the IsDirty Function Plus its easier than Copy Pasting for Ya) (Update 3/2/2000 I forgot to add the Enum To be used with the MyFormValuesOnLoad() Array But its in there now:) This code will aide in determining if Data has changed on a form. It serves many purposes. 1. To tell wether or not it is approriate to prompt user if they want to save changes they have made. 2. if the user wants to Reset or Undo changes they have made to a single text box, checkbox, or combobox Or all Controls at once(Works for control arrays as well).

7_2009-2012 #219102
Random Terrain Generator

Generate very detailed random terrain. Uses a random seed generator so that if you enter the same number with the same parameters it will generate the same map for you. It includes many options like detail, smoothness and water level. After building it allows you to rotate it three-dimensionally.

7_2009-2012 #219104
Basic screen saver with full features (preview...)

As many peoples seems to be interested in creating a screen saver, here is the code for a basic "blank screen" screen saver. You just have to put any animation you want. This code has all screen savers features, including password protection and preview... Have fun!

7_2009-2012 #219106
An example of using MSChart

This is just a basic example of how you can add and manipulate data used with an MSChart. Easy to amend and change for your own use. Don't get carried away ;)

7_2009-2012 #219162
Account for the taskbar when centering a form

This code takes account for the taskbar and the office toolbar when centering the form.

7_2009-2012 #219163
Animated gif display

This code allows you to display an animated gif file in your project

7_2009-2012 #219167
Transparent Text Box

This emulates a textbox with some limitations. But this text box control can have a texture picture. Something different from the standard colors.

7_2009-2012 #219194
Autotype Combo Box

This code was taken from O'Neil. It searches a combo box as the user types. O'Neil's code was modified to use the SendMessage API to search the combo box, which made it much faster. This is very fast, even with thousands of records in the combo box. Thank you O'Neil for the idea, and the well commented code!

7_2009-2012 #219195
Close All MDI Children Simply

This code allows you to close all the MDI child forms in an MDI form at once. Goto http://www.vbgreatone.com/ to learn like you've never learned before. Get over 500 api functions with example for each, and tips like this and, much much more. Just visit it, i'm sure you will like it. First, create a menu item in the MDI form name mnuCloseAll, then paste in this code:

Languages
Top Categories
Global Discovery