-
Feb 11th, 2025, 02:38 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Feb 11th, 2025, 02:44 PM
#2
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.
-
Feb 11th, 2025, 03:07 PM
#3
Thread Starter
Hyperactive Member
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.
-
Feb 11th, 2025, 03:26 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|