Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TopMost code and Hide Access Window code not working well together...

Status
Not open for further replies.

SnayJ

Programmer
Feb 27, 2008
65
US

As the title explains, I'm wanting to keep my application on top of all other programs on my desktop and I want to hide the Access Window. I can get either working individually, but can't get them to work together. I've attached the file because explaining what I've done to each form would only confuse you because I suck at explaining things when it comes to programming, plus it's a very lightweight program and very easy to follow when you look at it.

What I want to happen: Open the DB with MS Access Window Hidden, Splash page comes up and you click Ok. Then Slash page closes Menu comes up. From here click the 'Watch Netflix' button. Menu form closes and Netflix Window comes up. To get back to the Menu, double click the Netflix Window.

Back at the menu you can:
[ul]
[li]Change the size of the Netflix viewing window from Small to Large by clicking the 'Change Screen Size' button.[/li]
[li]Set the size for the Small Viewing Window and Large Viewing Window separately - to allow for monitor size differences[/li]
[li]And of course, exit the Utility, closing anything that is open[/li]
[/ul]

Currently it works great, just without hiding the MS Access Window. I have the code in place to hide the MS Access Window, but it's commented out. If you comment out the TopMost code and uncomment the Hide MS Access Window code, the MS Access Window code works... but when you try to go from the Splash page to the Menu Form, it closes the Splash page, but won't open the Menu Form.

That's why I say they work ok individually, but not together.

I imagine it's an easy fix, and I'm just overlooking something, but I've tried several workarounds (and different code) and can't get it to work.

Appreciate any help with this I can get, and it's not an urgent issue... more of a project I'd like to make better. I currently use it as is... because with the TopMost code working, I can still see the Viewer above whatever I'm working on or if I'm gaming.

SnayJ
 
 http://files.engineering.com/getfile.aspx?folder=03bf8ac2-b64d-4747-8e3c-e01ec24c3b8f&file=Netflix_Utility.accdb
Oh and it does take a few seconds for Netflix to loadup into the browser. I found that if I set the URL to the browser upon the form Loading, it just never worked... but if I added in a timer and gave it 3 seconds... it would load fine. If that can be fixed as well... I'd really love that.
 
You got yer Access goin' in the background, then Netflix loaded up with a good movie and a fav game in the wings, just in case the movie gets dull.

So now the boss walks up and...BINGO! There's yer Access project right on top with a kwik alt-TAB. Clever?

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
I work from home, no boss. I should just buy another monitor, but I still want to know how to do this, so I can complete the project.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top