Results 1 to 4 of 4

Thread: VB6 - PictureView usercontrol

Threaded View

  1. #1

    Thread Starter
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    VB6 - PictureView usercontrol

    Sometimes you might to have a scrollable area where to show pictures. Well, here is a simple solution to that: add usercontrol to your project and you don't need to do any extra coding.

    Features:
    - center picture when no scrolling required
    - move picture with the second mouse button
    - can save in .JPG (thanks to JPEG Encoder Class by John Korejwa)
    - customizable borderstyle
    - customizable corner borderstyle (visible only when both scrollbars are visible)
    - functions: ClearPicture, OpenPicture

    Events:
    - Click
    - DblClick
    - KeyDown
    - KeyPress
    - KeyUp
    - MouseDown
    - MouseMove
    - MouseUp
    - PictureLoaded


    And here is the code with a simple sample project:
    Attached Files Attached Files

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