Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 7th, 2008, 01:55 AM
Registered User
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser close when screen saver close

I built application in VB6, my application show in system tray, when I double click on icon of my application, it run screen saver, my screen saver shows images and news. Screen saver functionality is that when user press F2 key, my screen saver open news detail in browser.

But the problem is that when screen saver stop (close), browser also close with the screen saver.

Old April 7th, 2008, 03:09 AM
Registered User
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

following line i use to start screen saver
lRet = SendMessage(frmSysTrayIcon.hwnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0)

following line i use to open browser from screensaver
Call ShellExecute(GpxScrS.hwnd, "open", URL, "", "", 0)

I think browser is a child of screen saver, so how I remove this relationship.

I also entry in registry called "NoAutoReturnToWelcome" to 1

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Browser Window MoisesZaragoza Javascript How-To 2 February 6th, 2007 08:02 PM
How to close browser window? rupen Javascript How-To 14 July 31st, 2006 10:52 AM
How to close a browser session ? elisabeth Pro JSP 2 April 11th, 2004 11:30 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.