|
-
Jun 5th, 2004, 03:14 PM
#1
Thread Starter
pathfinder
[reSolved] Click on Forms Frame
Well, I'm clueless.
I'm using a sub to resize a panel when it's parent form resizes, via a MyBase.Resize handler
VB Code:
Private Sub RESIZE_FORM(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
Within the sub, I'm also repositioning the panel so its centered in the form, and is always 9/10 ths the size of the form.
Within the panel is a picturebox, and that is being centered in the panel as the panel resizes to the forms new size.
Now, My next step is going to be, if the picturebox contains an image, the picturebox is going to resize as the panel resizes, and the image within the picturebox is going to resize to the size of the picturebox.
So:
Form Resizes-> Panel Resizes-> PictureBox Resizes-> Image Resizes
Now, certainly I can do all this from the MyBase.Resize event, however, I can see that resizeing the image is going to be a memory intensize operation, and the MyBase.resizing event is constantly firing as I'm using my mouse to change the forms frame size.
What I want to really do is when the frame is changing size, all the sub controls are changing size, but I want to hold off on resizing the image until the form STOPS resizing.
This would be doable without a timer, if I could detect the MouseUp event of the forms frame.
So, My Question is:
How can I get the forms frame to fire off mouse events?
-Lou
Last edited by NotLKH; Jun 6th, 2004 at 02:05 PM.
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
|