Tuesday, March 17, 2009

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.