473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 7170
NeoPa
32,556 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

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

Similar topics

6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
3
by: anonieko | last post by:
You can try this code: > > > > > <!--- filename: mypage.html ----> <html> ....blah blah blah <script language=JavaScript src=/Javascript/center.js></script>
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
3
by: Maka Sili | last post by:
Hi, My VC++ application does not have a titlebar (and therefore no System menu, no minimize, no maximize and no close button). We have a custom button for minimize and close. When the app...
1
by: zakhirn | last post by:
Anyone have code that creates a button that will Minimize Excel to the system tray. I do not need anything complicated like changing the minimize button or the close button to a minimize to...
0
by: =?Utf-8?B?U2VudGhpbCBTdWJyYW1hbmlhbg==?= | last post by:
Our requirement is to run the vb dot net application in minimize mode with system tray icon in the remote machine (remote desktop). When we running in the remote desktop window is showing in...
3
by: Jimmy | last post by:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny problem: how can I make my program minimize to the taskbar represented as an ico, and when there is some message from network...
1
by: Pia Stevens | last post by:
A program opened at start a console window. How can I automatically minimized this window to Systray (not Taskbar)? Pia
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.