Results 1 to 5 of 5

Thread: [RESOLVED] UserControl resizing form

Threaded View

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Resolved [RESOLVED] UserControl resizing form

    I made a custom caption bar control to replace the standard Windows caption bar. It's just a very basic one with images for the caption bar and close/maximize/minimize buttons.

    I used 2 images for the top left and right corners. I have one of the MousePointer's set to SE/NW and the other one to SW/NE. So when holding the mouse over the corners it shows the "size window" cursor.

    How would I have this resize the form when the mouse is moved from the top corners?

    I attached a screen shot.

    The caption bar at the top is the UserControl which is placed at the top of the form.

    I would guess the code would go into the imgTopRight_MouseMove() event but I'm not sure how to do it.
    Last edited by DigiRev; Mar 26th, 2007 at 02:55 AM.

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