VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This code is a great way to create a toolbar that hides just above the desktop until the cursor is

Bryan King  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 5.0   Unknown Difficulty   Fri 15th March 2002   Mon 8th February 2021

This code is a great way to create a toolbar that hides just above the desktop until the cursor is positioned near the top of the screen which

API Declarations



'the codes to read the screen size and
'GetCursorPos were found on the internet.
'I forget where but if it is your code, please email me and
'I will add credit for your work.

'This code is a great way to create a toolbar that hides
'just above the desktop until the cursor is positioned near
'the top of the screen which makes the toolbar drop down.
'Moving the cursor off the form makes the form hide itself again.
'With a little work and understanding, this
'can be modified to have the form hide to the right or left
'of the desktop instead of the top. As far as I know, you can use
'this code any way you want to, it's free.

'The code in the Timer1 event handler was created by me.
'It took a lot of trial and error, and some math, but it works.
'If you find this code useful or have questions please email me:
'[email protected]
'Also, if you know of an easier way to do this, please email me.

'general declarations
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long

Rate This code is a great way to create a toolbar that hides just above the desktop until the cursor is (1(1 Vote))
This code is a great way to create a toolbar that hides just above the desktop until the cursor is .bas

This code is a great way to create a toolbar that hides just above the desktop until the cursor is Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters