re-sizing a control

IssacJones
IssacJones used Ask the Experts™
on
Hi

I am trying to re-size a control e.g. textbox or DateTimePicker.

Is there a way to do it using Inflate (from the Rectangle class?)

Issac
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented:
Sure...pretty much the way you stated:

        Dim rc As Rectangle = TextBox1.Bounds
        rc.Inflate(10, 10)
        TextBox1.Bounds = rc

*For a TextBox, MultiLine must be true to increase in the vertical direction.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial