Results 1 to 21 of 21

Thread: How To Minimize All Open Windows

Hybrid View

  1. #1

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  2. #2
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How To Minimize All Open Windows

    Quote 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.

  3. #3
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: How To Minimize All Open Windows

    Quote 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 ?
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  4. #4
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How To Minimize All Open Windows

    Quote 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

  5. #5

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How To Minimize All Open Windows

    Quote 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  6. #6
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How To Minimize All Open Windows

    Quote 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:
    1. Private Sub Command1_Click()
    2.     'WinKey down
    3.     keybd_event VK_STARTKEY, 0, 0, 0
    4.     'M key down
    5.     keybd_event VK_M, 0, 0, 0
    6.     'M key up
    7.     keybd_event VK_M, 0, KEYEVENTF_KEYUP, 0
    8.     'WinKey up
    9.     keybd_event VK_STARTKEY, 0, KEYEVENTF_KEYUP, 0
    10.    
    11. [B]    'do not minimiz form itself
    12.     Me.WindowState = vbMaximized
    13.     Me.WindowState = vbNormal[/B]
    14. 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
  •  



Click Here to Expand Forum to Full Width