Results 1 to 5 of 5

Thread: [RESOLVED] Problem with RichTextBox zoom factor.

Threaded View

  1. #1

    Thread Starter
    PowerPoster VBDT's Avatar
    Join Date
    Sep 2005
    Location
    CA - USA
    Posts
    2,922

    Resolved [RESOLVED] Problem with RichTextBox zoom factor.

    Hi all, I have a problem with the RichTextBox on my form. The problem is that the zoom factor of the RichTextBox control does not work if I call the "Display()" sub more than ones. Does any one know what would be the problem? Here is the sub I am using to set the text on the control.
    VB Code:
    1. Private Sub Display()
    2.         ' Enable users to select entire word when double clicked.
    3.         DisplayRTB.AutoWordSelection = True
    4.         ' Clear contents of control.
    5.         DisplayRTB.Clear()
    6.         ' Set the text for the control.
    7.         DisplayRTB.SelectedText = "Alpha Bravo Charlie Delta Echo Foxtrot"
    8.         ' Zoom by 4 points.
    9.         DisplayRTB.ZoomFactor = CSng(4)
    10.  End Sub

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