Solved

Minimize Form and Keep It Minimized

Posted on 2002-05-29
4
186 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
Comment Utility
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
Comment Utility
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
Comment Utility
Of course! Thank you!
0
 
LVL 9

Author Comment

by:GivenRandy
Comment Utility
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now