Solved

Minimize Form and Keep It Minimized

Posted on 2002-05-29
4
187 Views
Last Modified: 2010-05-02
I can minimize a form to taskbar by:

Me.WindowState = vbMinimized

However, I want it to stay minimized. Currently, if the user clicks on the taskbar entry, it redisplays that form. I have the ControlBox disabled as well as MinButton and MaxButton disabled.

I want it to stay visible on the taskbar so that it can display the status of the program (using the form caption).
0
Comment
Question by:GivenRandy
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
Crin earned 50 total points
ID: 7042922
Hi,

Use

Me.WindowState = vbMinimized
Me.Enabled = False

And don't forget to set it back to True when software supposed to be restored :)

Sincerely,
Crin

0
 
LVL 3

Expert Comment

by:nichia
ID: 7042932
Try placing the window out of view.

In Form_Load:

Windowstate = vbMinimized
Left = -(Width *2)

Hope it helps!
0
 
LVL 9

Author Comment

by:GivenRandy
ID: 7042984
Of course! Thank you!
0
 
LVL 9

Author Comment

by:GivenRandy
ID: 7044444
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question