re-sizing a control

IssacJones used Ask the Experts™

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?)

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
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