Results 1 to 4 of 4

Thread: Resizing/moving a RichTextBox on RunTime

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    6

    Question

    Hi,

    I'd like to know how to resize and to move a richtextbox in my form during the run-time.

    Thanks a lot!

  2. #2
    New Member
    Join Date
    May 2000
    Posts
    13

    Wink

    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.
    Very glad to see you !
    I'm a very begginer!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    6

    Exclamation I mean I can't

    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.
    Thanks for your answer.
    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.

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Put the following code in the Form_Resize event:
    Code:
    RichTextBox1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width