Results for "Category: Custom Controls/ Forms/ Menus"
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!
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 ;)
This code takes account for the taskbar and the office toolbar when centering the form.
This code allows you to display an animated gif file in your project
This emulates a textbox with some limitations. But this text box control can have a texture picture. Something different from the standard colors.
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!
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:
Every ones seen the menu thingi in Outlook, well I decided to make one. So here it is, Its pretty simple but works well and looks good! You can put in as many images as you need with their actions. A great enhancment to an app and looks good! CHECK IT OUT!!
Ever wonder how to make those cool popup menu's? Well This tutorial will tell you how to make them, how to detect which mouse button has been pressed, and how to make them popup on different mouse button clicks.
Create a side bar with your logo! Very easy to use and very cool!
A new FlexGrid whith editing ... very cool!
Flat toolbar with VB5? Now is possible
This code generates a 3D waterslide/hill side, how ever you see it as. Really cool concept, you can also create 3D triangles, 3D squares, and 3D Circles.
I downloaded that program that takes a picture and turns it to text . Well I took it alittle further After the computer turns it to text It can be turn back into a picture . I had one problem I could not get it back to the same size . The picture drawn from text is about half the size of the orginal.
I have created something like the laser program but mine's alittle different . Mine actually draws out the picture and it looks like a laser while it does it . It can draw any picture you have . It's a must see
Subclass you form to stop users from resizing below a certain limit! If you hate the generic two-liners "If Me.Height
This is a very small function which is potentially useful for those who know where/how to use it. I used this function on several of my projects already if you're wondering if this code has any use at all. I'll post some of them later. This function also demonstrates the use of control arrays and loading objects during run-time and you'll probably learn the concept of form scaling.
This code will change the color of the "Blue Screen Of Death"
Makes a textbox transparent. Here's how I do it: Get the DC from the textbox hWnd. Paint the textbox text onto the textbox parent. Paint the parent's image onto the textbox. Pretty Simple eh?
FINALLY A FUNCTION THAT EVERONE CAN USE - Microsoft should have thought of this. This is a DATE/TIME calendar dialog that is created using only native Windows API. (See ScreenShot) NO FORM NEEDED! It is used / called like any normal function. EXAMPLE: MyText = ShowDate() This will show the Date/Time Calendar and allow the user to select a date/time from a calendar / clock. You can also supply a 'default' date for the calendar to start at. This is my first attempt at hooking with VB and researched all of the requirements online at the MSDN libraries. Vote if you are so inclined. I would appreciate any comments or suggestions. *AMPM bug fixed *sorry* ENJOY