VB Screensaver

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James

    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?


  • Auric__

    #2
    Re: VB Screensaver

    On Tue, 18 Jan 2005 05:28:57 -0500, "James" <howa1151@bells outh.net>
    wrote:
    [color=blue]
    >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?[/color]

    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!

    Comment

    Working...