Hi,
I'd like to know how to resize and to move a richtextbox in my form during the run-time.
Thanks a lot!
Printable View
Hi,
I'd like to know how to resize and to move a richtextbox in my form during the run-time.
Thanks a lot!
What do you mean?
I think you can make it by using the properties such as Left,Top,Width,height;and you can also user the move method.
Thanks for your answer.Quote:
Originally posted by Netfox
What do you mean?
I think you can make it by using the properties such as Left,Top,Width,height;and you can also user the move method.
But I put the event "text.move" on mouse move but it just moves a shape and the richtextbox still sticks on the form.
And about resizing it, in fact I would like that when the user add some text in the richtextbox, the box be automatically resized with the right height and width to display all the words.
Thanks for your answer.
Put the following code in the Form_Resize event:
Good luck!Code:RichTextBox1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight