Connecting Tech Pros Worldwide Forums | Help | Site Map

Minimize window in desktop taskbar.

Member
 
Join Date: Mar 2007
Posts: 74
#1: May 1 '07
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.



NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,722
#2: May 4 '07

re: Minimize window in desktop taskbar.


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.
JConsulting's Avatar
Expert
 
Join Date: Apr 2007
Location: Houston
Posts: 601
#3: May 6 '07

re: Minimize window in desktop taskbar.


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
Denburt's Avatar
Moderator
 
Join Date: Mar 2007
Location: Louisiana
Posts: 1,218
#4: May 6 '07

re: Minimize window in desktop taskbar.


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
Denburt's Avatar
Moderator
 
Join Date: Mar 2007
Location: Louisiana
Posts: 1,218
#5: May 6 '07

re: Minimize window in desktop taskbar.


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
Reply