Wednesday, March 18, 2009

Adding A Timer While The Form Loads

This shows you how to add a timer to your form as you load it.


Add Any Control At Run-time

you always have seen some people adding some cool addin to VB which esase their programming right? now you can do it too...You can add commands, command buttons, to menus with any command you like.


Star-Like Rating Control

This is a iTunes/shockwave-style star-like rating system. I havent seen this (to my recollection) on PSC. This was developped for a custom DVD/Video management application. Set the MaxStars to 4, and use it to rate restaurants. Use (virtually) any number of stars and rate at an interval of 0.5.


Take A Screenshot To Form

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.


A Transparent Form

This code creates Transparant Forms.You can choose the Transparanty value (from 0 - 255).All other Controls placed on the Form are transparent.


Tuesday, March 17, 2009

Disable Close Button On Form

Disable close button on form.

Popup Menu Made Simple

Popmenu for beginners, shows great example of how to implement a popup menu into your program, from this example you should be able to add popup menus to which ever control you wish, hope this provides use to somebody.

RGB Form Colour Changer

This little code will allow you to change the forms colour using Scroll Bar and Text Boxes, this can be changed to change the colour of a Text Box.


Lock Text Box

Let you lock your textbox for inputs and it will NOT be grey, but will be able to highlightning and scrolling. One line code is all you need.

Hide Mouse pointer On a single Form

Here is a code to hide/show pointer in one step.No API calls.


Hide form from Taskbar

This code hides your form from the taskbar at runtime. Works perfectly.


Check Form PrevInstance

This code checks for a previous instance of the program. This is not like the App.PrevInstance property. This checks the prevInstance no matter the location of the file, or the name of the app. You don't have to call DestroyWindow to destroy the created window, since when you quit the application, it is self destroyed. This may not work in the VB IDE, because the window is created by VB6.EXE. In this case you can call DestroyWindow in the Form_Unload().


Form On Top

This will put your forms on top. Works good. It uses API calls to do this. Hope it helps you


Form Flash

This code makes your form window flash like Aol's Instant Messanger when it receives a message.

Monday, March 16, 2009

Center Your Form

This will Center your form on your screen. It will also higher it a tiny bit, so it looks centered above the TaskBar.


How to Show Another Form In VB6

This example show how to show another form.