What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Hidie mouse in visual basic

Hidie mouse in visual basic
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Hidie mouse in visual basic
quote:
Originally posted by Mike2
That will only work for your application.
If you want it on top for all windows then you have to use the ShowWindow api if i remember correcly.
I'll post an example when i get home...
eh yeah... but he asked for hiding the mousecursor system-wide, not about a code to show your window alwyas on top (although, that could help him for this application also ;))


To keep your window always on top:
code:
Declare Function SetWindowPos Lib "User" (ByVal h%, ByVal hb%, ByVal X%, ByVal Y%, ByVal cx%, ByVal cy%, ByVal f%) As Integer
Const FLAGS = 1
Const HWND_TOPMOST = -1
' Use the above Declaration and Constants along with
' the code in "Form_Load" to make a window remain On Top.

Sub Form_Load ()
    'Sets form1 always on top.
    Dim Success As Integer
    Success% = SetWindowPos(Form1.hWnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
    ' Change the "0's" above to position the window.
End Sub


This post was edited on 05-20-2004 at 04:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-20-2004 04:43 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Hidie mouse in visual basic - by Necroman on 05-20-2004 at 02:59 PM
RE: Hidie mouse in visual basic - by Stigmata on 05-20-2004 at 03:55 PM
RE: Hidie mouse in visual basic - by Necroman on 05-20-2004 at 04:18 PM
RE: Hidie mouse in visual basic - by dotNorma on 05-20-2004 at 04:20 PM
RE: Hidie mouse in visual basic - by Stigmata on 05-20-2004 at 04:20 PM
RE: Hidie mouse in visual basic - by Mike on 05-20-2004 at 04:30 PM
RE: Hidie mouse in visual basic - by CookieRevised on 05-20-2004 at 04:43 PM
RE: Hidie mouse in visual basic - by Necroman on 05-20-2004 at 04:45 PM
RE: Hidie mouse in visual basic - by CookieRevised on 05-20-2004 at 05:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On