?
Solved

Minimizing windows when Running VB application

Posted on 2003-12-09
3
Medium Priority
?
214 Views
Last Modified: 2010-05-01
Hi

Is it possible to minimize all windows when running a VB project,
i.e. only VB GUI is maximized.

Thanks
0
Comment
Question by:Reachtabhair
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
R_Rajesh earned 200 total points
ID: 9904627
Hi Reachtabhair,

put this in your form load event


-------------
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Sub Form_Load()
thwnd = FindWindow("Shell_TrayWnd", vbNullString)
Ret = PostMessage(thwnd, &H111, 419, 0&)
End Sub
--------------


Cheers!

Rajesh
0
 
LVL 24

Expert Comment

by:R_Rajesh
ID: 9904692
Reachtabhair,

ofcourse, i am assuming you ment minimize all windows at runtime.

if you want them minimized during design time then simply minimize them manually :)
shortcut to minimize all windows (winkey+M)


Rajesh
0
 

Author Comment

by:Reachtabhair
ID: 9904845
Hey R_Rajesh

Thanks a million

Spot on
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

764 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