 |
| Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access 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
|
|
|
|

June 22nd, 2005, 07:56 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Resize and lock the Access Window
OK, gurus - I've got one for you. I'm trying to resize the Access window behind my main form. I've accomplished this using the hwnd functionality. The problem is, when I minimize my form, to let users do other things or just put it in the taskbar, then click on it to bring it back, the Access window is back! Basically, I want my database to act like a stand alone app.
Any ideas, folks?
Thanks in advance for your help!
Kevin
dartcoach
__________________
dartcoach
|
|

June 23rd, 2005, 10:02 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
What do you mean by "the Access window behind my main form"? Do you mean Access itself? Your form is maintained inside an Access window. You cannot display anything (form, report, etc.) without it.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|
|

June 23rd, 2005, 10:23 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
|
|
You're right Greg. What I'm trying to do is resize the Access window itself, behind my mainform, so that my form is all they see. I have accomplished this, just before your message. I use the hwnd parms to resize the access application window in a spot on the screen behind my main form. I then use the mimimizeapp and restore app to send my form and the access window to the toolbar. Since my form is not moveable, it acts like a standalone application.
Thanks,
Kevin
dartcoach
|
|

June 23rd, 2005, 10:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
Clever... Have you tried disabling the min/max buttons on the form and only enabling the restore? In that way, it should restore back to the place where it was.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|
|

June 23rd, 2005, 10:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
Correction: I mean disable the MAX button but allow MIN and RESTORE.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|
|

June 23rd, 2005, 10:35 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Greg,
I disabled all of them - Min, Max, Restore and Close. I have a button for minimize, and a button for close. The windows restore takes over when it's restored from the toolbar.
It works great! When the user opens my database, the userid and password form, which is only 3" wide and 1 1/2" high pops up in the middle of the desktop with the Access window hidden behind it. After a correct userid and password, it opens the mainform, also pop up with the access window hidden.
Thanks for your help!
Kevin
dartcoach
|
|
 |