Center a form within another form
By: Joe Markowski Date: 01/11/1997
File:

centerformwithinform.zip

Size:

312 bytes

Download now!

This sub will center any form within another form.

Syntax

CenterFormWithinForm(formname, formcontainer)

Parameters

formname: name of an existing form to center
formcontainer: name of an existing form to center formname within

Type of data

N/A

Returns

N/A

-

Examples:

CenterFormWithinForm(Form1, frmMain) 'Center Form1 within frmMain

CenterFormWithinForm(Me, frmMain)
'Center Form1 within 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