load help file on top
load help file on top
load help file on top
load help file on top
load help file on top
load help file on top load help file on top load help file on top load help file on top load help file on top load help file on top load help file on top load help file on top
load help file on top load help file on top
load help file on top
Go Back  Xtreme Visual Basic Talk > > > load help file on top


Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2016, 01:39 PM
Losey Losey is offline
Regular
 
Join Date: Oct 2004
Location: Kaneohe Hawaii
Posts: 85
Default load help file on top


I would love for my .chm help file to come up on the screen in a location chosen by my app after the user presses F1. It is sometimes "hidden" under a form that the user has been using. Just having the .chm form on top, zorder 0, would be fine. When the help file loads, my code is still running in a "Pause" loop and must maintain focus in order for the user to exit the pause loop and continue. Maybe the help file could be just "under" the pause form that must maintain focus.
Not critical to the app but "would be nice."
Reply With Quote
  #2  
Old 06-13-2016, 08:59 PM
Kluz's Avatar
Kluzload help file on top Kluz is offline
Sapience.Aquire

Super Moderator
* Expert *
 
Join Date: Oct 2003
Location: Lake Bluff, Ill., U.S.
Posts: 3,445
Default

BringWindowToTop function
This might get you started. You'll need to get the Hwnd of the .chm window:
FindWindow function
__________________
No the other right mouse click
Reply With Quote
  #3  
Old 06-14-2016, 12:48 PM
Losey Losey is offline
Regular
 
Join Date: Oct 2004
Location: Kaneohe Hawaii
Posts: 85
Default

So if I submit a FindWindow with null parameters, how do I determine the correct window? Or how do I send it to the .chm window? I depend on the automatic launch of the .chm file from the user F1 key press.
Reply With Quote
  #4  
Old 06-14-2016, 03:42 PM
Cerian Knight's Avatar
Cerian Knightload help file on top Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,193
Default

You need to specify one of the FindWindow parameters (to avoid writing a lot of extra code for searching through windows manually). You should know the name/title of the .chm window (and make sure it is unique, again, to avoid writing extra code) then do this:
Pass the .chm window title as the second parameter to FindWindow. The first parameter is vbNullString.
Pass the returned hWnd to BringWindowToTop.
Then repeat the process, if necessary, using the title of the 'Pause' form to keep it above the .chm.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
  #5  
Old 06-17-2016, 01:32 PM
Losey Losey is offline
Regular
 
Join Date: Oct 2004
Location: Kaneohe Hawaii
Posts: 85
Default

Thanks. I think I will delay implementing this until after an upcoming release.
Reply With Quote
Reply

Tags
file, user, pause, form, loop, focus, maintain, .chm, app, top, love, running, code, exit, critical, nice, loads, continue, fine, hidden, load, chosen, presses, location, zorder


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
load help file on top
load help file on top
load help file on top load help file on top
load help file on top
load help file on top
load help file on top load help file on top load help file on top load help file on top load help file on top load help file on top load help file on top
load help file on top
load help file on top
 
load help file on top
load help file on top
 
-->