georgepatotk
Contributor
Happy Chinese New Year...
I am using a textbox in my winform.
The default size of the font is 12 and the size of the textbox is 224,64.
I have thousands of records to be shown in this textbox, one by one.
I have this problem where sometimes the records are too long to fit into the textbox. Means 224,64 is not enough. Since i can't size of the textbox is fixed, so, I would like to change the font size accordingly.
I wish to do something likee this
While (it is not enough)
TextBox1.Font = New Font("Microsoft Sans Serif", TextBox1.Font.Size - 1)
End While
so, anyone could help me on this? Please..
I am using a textbox in my winform.
The default size of the font is 12 and the size of the textbox is 224,64.
I have thousands of records to be shown in this textbox, one by one.
I have this problem where sometimes the records are too long to fit into the textbox. Means 224,64 is not enough. Since i can't size of the textbox is fixed, so, I would like to change the font size accordingly.
I wish to do something likee this
While (it is not enough)
TextBox1.Font = New Font("Microsoft Sans Serif", TextBox1.Font.Size - 1)
End While
so, anyone could help me on this? Please..