devxlogo

Add size grips to a form

Add size grips to a form

There are two simple ways to add the so-called size-grips to the bottom-right corner of a form. The first method is to add a StatusBar control, which includes a size-grip of its own. The second method is to add a multiline TextBox control, set its ScrollBars property to 3-Both and add some resizing code that resizes the TextBox so that its lower-right corner coincides with the form’s corner:

Private Sub Form_resize()    Text1.Move 0, 0, ScaleWidth, ScaleHeightEnd Sub

devx-admin

Share the Post: