Category Archives: Microsoft

Animated Glass Cube Effect using StretchBlt

This code animates a glass cube moving on a picture in real-time. Almost the same as that Windows 95 screen saver (the moving glass boll). I though this code can help make a screen-saver like that. (You have to e-mail me a copy of that screen-saver please) Original Author: Riaan Aspeling Inputs Create a new form. Place to picture… Read More »

DAOTableToHTML

Convert a database table to HTML Original Author: Vincent Zack Inputs DAO Recordset Object Assumptions A reference to DAO x.x Object Library Returns String Code Const T1 = vbTabConst T2 = T1 & T1Const TR = T1 & “”Const TD = “”Const TDEND = “”Const TABLESTART = “”Const TABLEEND = ” “Function HTMLTable(dbRecord As Recordset) As StringDim strReturn As… Read More »

* Make your own Active X Binary Control!!! *

* This is the code to put in the General place of you UserControl. By Doing this you can make a Active-X control that Makes Text to Binary, Binary to Text, and to see if a string is Binary! * Original Author: Matt Evans Inputs Text to change Assumptions none!!! easy for beginners! Returns Changed text Code ‘enjoy! ;D… Read More »

Coolbutton

It’s a coolbutton. 🙂 Those flat things that MS uses now.This one supports setting images for mouse over, mouse down, mouse up, drawing bevels for those 3 states, setting the colours of the bevel, automatically generating the mousedown and mouseup images by varying the brightness of the original, setting text positioning… lots of stuff. Original Author: Dave Hng Assumptions… Read More »

mAboutDialog

How would you like to have your own About menu option on the little system menu on the top left-hand corner of your form. I whould , so I wrote a module to do it with one line of code from the Load event on my form. For this code to work you have to create a About… Read More »

Make a Transparent Area (Any Size) in your Form

This function create a transparent area of dirrent shape (such as rectangle, Circle)in your form, you specify where and how big the hole is. Unlike most other trnsparantroutine, this one not only let you see trough it, but also allow you total accessaccess the things in the hole!!! Of course, You can make the entire form transparentor make… Read More »

Capture Screen or Active Window

This function capture the screen or the active window of your computerProgrammatically and save it to a .bmp file. This may allows you to get another machine’sscreen through network!!! Fully tested in VB5. Original Author: Dalin Nie Code ‘1: Declare’ This should be in the form’s heneral declaration area.’ If you do it in a module, omit the word… Read More »

Picture Commands

This includes the source code for Rotating a Picture 45 Degrees, Flipping a Picture Horizontally, and Flipping a Picture Vertically! Very usefull if your working on your own picture editing program.Questions: mikecanejo@Hotmail.com Original Author: Mike Canejo Assumptions ‘Please follow these simple steps. DONT SKIP ANYTHING!‘1.) Make a New Project in your 32bit Visual Basic‘2.) Add a New Module(Module1.Bas) to… Read More »

SQLDate

Dates in SQl queries often cause problems, as the date must be in the ANSI format whereas dates brought back can be in a different local format. This function simply returns the date in the required format and save having to type Format(DateString, “mm/dd/yy”) every time. Original Author: James Wilson Inputs The date to be processed as type DATE.… Read More »

Drop Menu for icon in System Tray

Easy Code here: Place an icon in the System Tray and have a drop menu appear when you click the icon with the right-mouse button. If you already have code with bitmaps in your menu, just add this code to your project! This code DOES WORK, just be careful and follow the tips. Then slap yourself for other… Read More »