469,913 Members | 2,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

Minimize window in desktop taskbar.

74
I also un-checked all of the check boxes in the database's Startup options menu. I then added a button to the form so that the user can close the database, and another button so that the form can minimized. I made the minimize button so that when it was used, something would show-up on the taskbar and not on the desktop (above the Start button). I figured the users would get confused when they had multiple windows open and couldn't find the database on the taskbar. Here's the code I put in the minimize button's On Click event:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Image37_Click()
  2. Dim stDocName As String
  3. Dim stLinkCriteria As String
  4.  
  5. Me.Form.Modal = False
  6. stDocName = "MinimizeForm"
  7. DoCmd.OpenForm stDocName, , , stLinkCriteria 
  8. fSetAccessWindow (SW_SHOWMINIMIZED)
  9.  
  10. Exit_Image37_Click:
  11. Exit Sub
  12.  
  13. Err_Image37_Click:
  14. MsgBox Err.Description
  15. Resume Exit_Image37_Click
  16.  
  17. End Sub
But once the form is minimized (I realize that it's really the main database window that's minimized, because that's what's shown on the taskbar), is there a way to maximize/re-open the form (just like it is when it's initially opened) without the main database showing-up? I tried, but I couldn't figure out a way to use SetAccessWindow (SW_HIDE) again.

So anyway, sorry for the long explanation, but just let me know if anyone has any questions or ideas.

Thanks.
May 1 '07 #1
4 6678
NeoPa
32,231 Expert Mod 16PB
I'm a little confused.
Firstly, what is fSetAccessWindow()?
It's in your code but there's no explanation of where it's from.

Secondly, what exactly are you trying to achieve? I got the impression you want to show the form but keep the application window minimised.
May 4 '07 #2
JConsulting
603 Expert 512MB
What you're trying to do is really quite involved, and requires that you keep a menu or splash screen open and not minimized. I do this by creating a pop-up form about 100 pixels high, however wide I wish and using movesize(0,0,0,0) to keep it up in the left hand corner of my sreen. On this small bar-like form, I can have buttons, combox or whatever control I wish to allow me to open, close and minimize./maximize my pop-up forms.

The only drawback that I've found with this method is reports. In order to preview them, you must have the DB window open.

J
May 6 '07 #3
Denburt
1,356 Expert 1GB
I haven't lost track of this one just been real busy here.

Check out this link I am sure you can utilize this I managed to make it work for me on this end let me know if you have any issues. I have designed a form setup similar to what you have and it seems to work fine.

http://support.microsoft.com/kb/210118
May 6 '07 #4
Denburt
1,356 Expert 1GB
Oh and Hutch just a word I know this thread question didn't relate to your original question/thread however since the original thread/Question contained a specialized routine you would probably get more responses if you posted a link to your original thread/question. :)

http://www.thescripts.com/forum/thread629194.html
May 6 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by David Hayes | last post: by
3 posts views Thread by anonieko | last post: by
29 posts views Thread by wayne | last post: by
3 posts views Thread by Maka Sili | last post: by
1 post views Thread by zakhirn | last post: by
reply views Thread by =?Utf-8?B?U2VudGhpbCBTdWJyYW1hbmlhbg==?= | last post: by
3 posts views Thread by Jimmy | last post: by
5 posts views Thread by =?Utf-8?B?SmFtZXMgV29uZw==?= | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.