Category Archives: Microsoft

Creating Program Manager Groups & Icons

Create program manager groups and icons from your code! Original Author: VB Tips and Source Code Inputs It requires 3 arguments to be passed to it. They are:1.The form that contains Label1 (x) 2.A string variable containing the group’s name (GroupName$) 3.A string variable containing the path to the group (*.GRP) file (GroupPath$) Code The first step is to… Read More »

Center an MDI Child Form Within the Parent

useful when you need to center an MDI child form within the parent windo Original Author: Chris Gibbs Inputs The SUB (CenterChild) requires two arguments. The first of these two arguments is the name of the MDI (parent) form. The second argument is the name of the MDI Child form. Code Sub CenterChild (Parent As Form, Child As Form)  Dim… Read More »

Rotate WMF

This program lets you rotate a Windows Meta File inside a picture box. Original Author: Emilio Aguirre API Declarations Some see code. Attachments File Uploaded Size CODE_UPLOAD1346.zip 9/3/2020 3:45:00 PM 51650

IsLoadedForm

Tells whether a form is loaded or not Original Author: Luca Faiazza Inputs ByVal pObjForm As Form Returns Boolean value Code Public Function IsLoadedForm(ByVal pObjForm As Form) As Boolean  Dim tmpForm As Form  For Each tmpForm In Forms    If tmpForm Is pObjForm Then      IsLoadedForm = True      Exit For    End If  Next  End Function

Determine when an app launches with SHELL is done

In VB3, you call GetModuleUsage() to determine when an app you started with the Shell command was complete. However, this call does not work correctly in the 32-bit arena of Windows NT and Windows 95.To overcome this obstacle, use a routine in both 16- and 32- bit environments that will tell you when a program has finished, even… Read More »

Create a form bigger than the screen!

The primary focus here is to allow you to display forms that are larger than the screen can show. Need an 8?¢” x 11″ Form? NO Problem!The size used in this example is 8?¢” x 11″, but it could just as easily be landscape, envelope, or any needed size. Original Author: VB Tips and Source Code Code Place a… Read More »

A Drawer : All about the paint program codes!

You can get many kinds of codes about paint applications like pencil tool, line,eraser, picker, gradation, open files, and more. You can configure options. And more!You can also get filters! Enjoy it! Original Author: Jongmin Baek Attachments File Uploaded Size CODE_UPLOAD1327.zip 9/3/2020 3:45:00 PM 49264

A 3D rotation program

The purpose of this code is show how 3D graphics work. This program shows how to do 3D rotations, Backface removal, and shading. Original Author: Tim Talma Attachments File Uploaded Size CODE_UPLOAD1333.zip 9/3/2020 3:45:00 PM 7711

Dragging a form by a control

This code is reusable and small enough to paste into whatever you’re doing and instantly have a form that has no need for a title bar. Original Author: VB Pro API Declarations In the general declarations section, insert these lines: Declare Sub ReleaseCapture Lib “User” ()Declare Function SendMessage _Lib “User” (ByVal hWnd As Integer, _ByVal wMsg As Integer, _ByVal… Read More »

Converting long file names

VB4’s commands for dealing with file names (such as KILL, MKDIR, and FILECOPY) support long file names without programmer interaction. A number of the Win95 API functions will return only the short name, and you’ll notice a number of short file name entries if you’re digging through the registration database. Therefore, occasionally you’ll need to convert a short… Read More »