Adjusting the size of the User Form

Now that you have inserted a UserForm, you need to adjust the size of the UserForm to accommodate the controls that you will place on the form. To change the size of the form, adjust the UserForm's properties. Properties include attributes such as height, width, position, font, color, text, and so on.

Click anywhere on the UserForm, and choose ViewOProperties Window to open the Properties window, as shown in Figure 25-11.

Properties - frmAdjustWork

X

fr m Ad just1Work UserForm

Ji

Alphabetic | Categorized |

(Name)

FrmAdiustWork

A

BackColor

□ &H8000000F&

BorderColor

■ &H80000012&

BorderStyle

0 - fmBorderStyleNone

Caption

Adjust Work

Cycle

0 - fmCydeAllForms

DrawBuffer

32000

Enabled

True

Font

Tahoma

ForeColor

■ &H8Ü000012&.

Height

145

HelpContextID

0

Keep5crollBarsVisible

3 - fmScrollBarsBoth

Left

0

Mouselcon

(None)

MousePointer

0 - fmMo us ePointerDe fault

Picture

(None)

Picture Alignment 'PictureSizeMode

2 - fmPictur eAlignmentCenter 0 - fmPictureSizeModeCliD

a

Figure 25-11: The Properties window allows you to set the attributes of the UserForm.

Note The Properties window was probably already displayed in the Visual Basic Editor. *""""' This window is typically displayed in the lower-left corner of your screen.

In the Properties window, set each of the properties for the UserForm, as shown in the following table.

Property

Input

(Name)

FrmAdjustWork

Caption

Adjust Work

Height

145

Width

240

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment