469,088 Members | 1,274 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,088 developers. It's quick & easy.

VB Screensaver

Made a screensave in VB for my work puter (simple variation on the bouncing
ball) and it works great except for one small detail. When I have a new mail
notification or simlar system msgbox popup the popup appears over the
running screensaver and the taskbar becomes visible. Doesn't cause any
problems but it looks really weird.

I have all the standard stuff programmed in (zOrder, etc) following most of
the snippits available on the net but I can't find anything related to this.
Any ideas?
Jul 17 '05 #1
1 4253
On Tue, 18 Jan 2005 05:28:57 -0500, "James" <ho******@bellsouth.net>
wrote:
Made a screensave in VB for my work puter (simple variation on the bouncing
ball) and it works great except for one small detail. When I have a new mail
notification or simlar system msgbox popup the popup appears over the
running screensaver and the taskbar becomes visible. Doesn't cause any
problems but it looks really weird.

I have all the standard stuff programmed in (zOrder, etc) following most of
the snippits available on the net but I can't find anything related to this.
Any ideas?


Here's what I use. I don't know all the details - never had reason to,
my needs are simple - but you can read up on this at MSDN or AllAPI.net.

Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As _
Long, ByVal hWndInsertAfter As Long, ByVal x As Long, _
ByVal y As Long, ByVal cx As Long, ByVal cy As Long, _
ByVal wFlags As Long) As Long

Const HWND_TOPMOST = -1

Private Sub Form_Load()
res& = SetWindowPos(Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
End Sub
--
auric underscore underscore at hotmail dot com
*****
Fool me once, shame on you. Fool me twice, watch it! I'm huge!
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by klappnase | last post: by
4 posts views Thread by Christopher Burr | last post: by
reply views Thread by Luke | last post: by
reply views Thread by Paul Smith | last post: by
4 posts views Thread by Paul Smith | last post: by
4 posts views Thread by Simon Mercer | last post: by
6 posts views Thread by VMI | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.