|
-
Jun 19th, 2006, 10:21 AM
#1
Re: How To Minimize All Open Windows
If its your own form/window then you can easily just add Me.WindowState = vbMaximized.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 19th, 2006, 11:11 AM
#2
Frenzied Member
Re: How To Minimize All Open Windows
 Originally Posted by RobDog888
If its your own form/window then you can easily just add Me.WindowState = vbMaximized.
i do not want to maximize the form itself. I do not want it to get placed in task bar! I tried that method it made the form itself bix and placed it in task bar!
Last edited by tony007; Jun 19th, 2006 at 11:16 AM.
-
Jun 19th, 2006, 11:14 AM
#3
Re: How To Minimize All Open Windows
 Originally Posted by tony007
i do not want to maximize the form itself. I do not want it to get placed in task bar!
By setting the form's ShowInTaskBar property to false ?
-
Jun 19th, 2006, 11:17 AM
#4
Frenzied Member
Re: How To Minimize All Open Windows
 Originally Posted by iPrank
By setting the form's ShowInTaskBar property to false ? 
Is there a way not to maximize it just leave same size?Thanks
-
Jun 19th, 2006, 11:19 AM
#5
Re: How To Minimize All Open Windows
 Originally Posted by tony007
Is there a way not to maximize it just leave same size?Thanks
Just use the Me.WindowState = vbNormal but you will need to do like I just posted in order to trap the event.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 19th, 2006, 11:22 AM
#6
Frenzied Member
Re: How To Minimize All Open Windows
 Originally Posted by RobDog888
Just use the Me.WindowState = vbNormal but you will need to do like I just posted in order to trap the event.
Many thanks to u . It worked well . Is there a way to put all the windows to some sort of system tray instead of task bar?
VB Code:
Private Sub Command1_Click()
'WinKey down
keybd_event VK_STARTKEY, 0, 0, 0
'M key down
keybd_event VK_M, 0, 0, 0
'M key up
keybd_event VK_M, 0, KEYEVENTF_KEYUP, 0
'WinKey up
keybd_event VK_STARTKEY, 0, KEYEVENTF_KEYUP, 0
[B] 'do not minimiz form itself
Me.WindowState = vbMaximized
Me.WindowState = vbNormal[/B]
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|