cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to set size of TextBox control with code?

JefferyGu
1-Visitor

How to set size of TextBox control with code?

Hi Mike,

As we known, we can use hWnd property to get handle of the window which contains the TextBox control. Bu if I want to set the size (such as width and height) of the TextBox control , I do not know how to implement the function with code. Please give me a hand.

There is a file in the attachment, which contains two TextBox controls, and I have gotten window handles for each control.

Best regards.

Jeffery

3 REPLIES 3

I have to admit that I have never seen this done before.

Mike

I done a little research on this today and there is a lot of discussion about setting the width and height automatically. Might be best searching through Google and finding a forum dedicated to VB.

Mike

RichardJ
19-Tanzanite
(To:JefferyGu)

I want to set the size (such as width and height) of the TextBox control

I don't think there is any way to do that.

Announcements

Top Tags