|
-
Jun 18th, 2006, 02:25 AM
#1
Thread Starter
Lively Member
How to detect the VB Form is moved and Resizing of Form is complete?
Hello!
Currently, I'm working on a Website Sticky Notes Desktop Assistant application. The Application resides in System Tray and user clicks on it to get the Compose Note Interface. There are certain Ajax APIs to register the Position and Size of Note Window. I need to syncronize the size and location of Note window on User's Desktop with Online MySQL database. I'm facing problem in detecing Form Resize and change of Form position.
The Resize event of Form is fired everytime a slightest resize action is taken. However, I can not execute XMLHTTP so fast and so many times! So, I was wondering why Microsoft has not given any event such as Resizing and ResizeComplete. Is there any API trick or some windows subclassing trick which will help me to mimic Resize complete? When User moves his mouse to the edge of form and then clicks mouse button to start resize; then just keeps on moving his mouse and several times Form_Resize() event is fired! I thought that Form MouseUp() will be available once user releases his mouse but no luck! Any suggestion/work-around for this?
Second problem is even more interesting! There is no default event for VB Form which will show that Form Position is changed, is there any? How to detect that the Form is moved? I'm not finding any specific API or not that familiar with Windows Messages to subclass the event. Please help me to resolve this issue.
Eagerly waiting for your reply ...
Regards,
Ruturaj.
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
|