Results 1 to 4 of 4

Thread: [RESOLVED] How to detect when Mouse is Clicked on the Form lower right corner ?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2009
    Location
    Anywhere I want to.
    Posts
    344

    Resolved [RESOLVED] How to detect when Mouse is Clicked on the Form lower right corner ?

    I the resize event I need to maintain the aspect ratio of the form width vs height.
    The resize event is not triggered as I have not dragged yet.

    OR

    How to get the Form_Resize event to trigger as I drag the right corner.
    I cannot use the status bar.

    Somehow use the Timer control?

    Sample code please.

  2. #2
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,901

    Re: How to detect when Mouse is Clicked on the Form lower right corner ?

    a suggestion is to have a way to resize your form using a shortcut key. like F11. that way u don't need any resize functionality, like a function that will center the form and resize the way u want. like 200% or fullscreen or whatever.
    but if u want to resize, the best way would be by subclassing. theres many examples. just do a google search or use the search function.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2009
    Location
    Anywhere I want to.
    Posts
    344

    Re: How to detect when Mouse is Clicked on the Form lower right corner ?

    Thank you for your response.

    The user needs to be able to mouse move and resize this form.

    I found a way using a Timer Control to solve it.

    I have the timer hit the ResizeEvent subroutine from the Form_Resize event several times and use DoEvents.

    I do but rarely use subclassing thanks to the gentleman who developed IDE safe subclassing.

  4. #4
    The Idiot
    Join Date
    Dec 2014
    Posts
    2,901

    Re: How to detect when Mouse is Clicked on the Form lower right corner ?

    its not 100% to use a timer. it can "slip". but if its works, why not.

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