Results 1 to 3 of 3

Thread: [RESOLVED] RichTextBox - disable mouse scaling

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Resolved [RESOLVED] RichTextBox - disable mouse scaling

    Hello everyone.

    Finishing off my control, but I now found a nasty problem. When the user holds the 'Ctrl' key and scrolls the mouse scrollwheel, the control is scaled. I do not want that, since it would make the Font size fail.

    I previously made it reset the scale on Control up, but that is just not a very elegant way:
    Code:
    Me.ZoomFactor = 1
    I do not want the text scaled at any time, not even while the user is scrolling and it resets afterwards.
    I got to overriding the 'ProcessCmdKey' but no idea how to catch a scroll or zoom event.

    Any way of disabling the RichTextBox scaling (or zooming) so it does not even occur? I have a control that inherits from the RichTextBox.

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