![]() |
#1
|
|||
|
|||
![]()
I would like close form window just by moving mouse cursor outside of frame. Can i make it by standard VBA operations or need use API calls or hooks ? May be need somehow to trace mouse positions from UserForm_MouseMove...
|
#2
|
||||
|
||||
![]()
Hi.
Place all form controls inside of a frame that is almost the size of the form but a little smaller. Use the mouse move event to close the form. The only trick needed would be to place the cursor inside the frame area when you start the form. Code:
Private Sub UserForm_Initialize() 'move mouse cursor to center of form.... End Sub Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.Hide End Sub |
#3
|
|||
|
|||
![]()
Hi
Thank you very much for your help. I was going to use API-GetCursorPos to track mouse, but your idea is better. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Argh! :) You export jpp/png and Draw X4 crops so close sometimes it cuts image | fungel | General | 3 | 22-10-2010 05:13 |
Close Path Macro | macrofan | CorelDRAW/Corel DESIGNER VBA | 14 | 12-12-2009 05:16 |
Best way to Close a form | RobC | CorelDRAW/Corel DESIGNER VBA | 2 | 19-09-2009 02:30 |
cannot close combined shape | jemmyell | CorelDRAW/Corel DESIGNER VBA | 5 | 27-07-2005 15:25 |
How to use close path in a VB routine? | jconnor | CorelDRAW/Corel DESIGNER VBA | 1 | 02-04-2005 04:15 |