Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2005, 07:56 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default 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
Reply With Quote
  #2 (permalink)  
Old June 23rd, 2005, 10:02 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
Reply With Quote
  #3 (permalink)  
Old June 23rd, 2005, 10:23 AM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #4 (permalink)  
Old June 23rd, 2005, 10:25 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
Reply With Quote
  #5 (permalink)  
Old June 23rd, 2005, 10:27 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Correction: I mean disable the MAX button but allow MIN and RESTORE.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
  #6 (permalink)  
Old June 23rd, 2005, 10:35 AM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Application Window resize detection jcable Excel VBA 2 June 4th, 2008 02:48 PM
Height adjustment on window-Scroll and Resize AbrarNazeer Javascript 0 April 9th, 2008 07:15 AM
Window Resize arunmohanmp HTML Code Clinic 1 September 20th, 2006 03:27 AM
Resize Access main window from Access form hasseh Access VBA 2 October 24th, 2004 05:15 PM
Application Window resize Draffus VB How-To 0 September 8th, 2004 03:49 PM



All times are GMT -4. The time now is 08:07 PM.


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