Center a form on the screen
By: Gordon F. MacLeod Date: 01/11/1997
File:

centerform.zip

Size:

265 bytes

Download now!

This sub will center any form on the screen. It is very simple to use: you just provide the form name and the sub will center it!

Syntax

CenterForm(formname)

Parameters

formname: name of an existing form

Type of data

N/A

Returns

N/A

-

Examples:

CenterForm Form1 'Center Form1
CenterForm Me
'Center the current form

The function is contained in a module. You can cut and paste it in any program of yours.

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
Webmaster's e-mail: webmaster@vbprogzone.cjb.net
Hosted by InWind: www.inwind.it