Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there an easy way to resize all the objects when resizing the form?

easy form objects resize resizing
0
Posted

Is there an easy way to resize all the objects when resizing the form?

0

There is no easy way. You have to catch new form’ size and recalculate all the components’ sizes. For example, following code keeps textbox as big as possible and command button in the middle of the form: Private Sub Form_Resize() On Error Resume Next Text1.Width = Me.Width – 60 Text1.Height = Me.Height – 960 Command1.Top = Me.Height – Command1.Height – 430 Command1.Left = (Me.Width – Command1.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.