Results 1 to 5 of 5

Thread: Adding Minimize and Maximize Button to Project

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    100

    Adding Minimize and Maximize Button to Project

    I have a simple project with a Form window.

    All it has is a red Close button in the top right. Is it possible to add any more buttons. I have MinButton and Maxbutton set to true, but makes no difference

    Also, I tried it on a netbook with a smaller screen, and ending up with part of the Form filling the whole screen with no scroll bars for horizontal or vertical

    Thanks for your help

    Mike
    UK

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Adding Minimize and Maximize Button to Project

    Change the Form's BorderStyle property to Sizeable.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    100

    Re: Adding Minimize and Maximize Button to Project

    Quote Originally Posted by DigiRev View Post
    Change the Form's BorderStyle property to Sizeable.

    Bang on the money !

    Thanks

    Although I tried it in a low screen resolution where the Form was bigger than the screen, but there were no scroll bars for horizontal or vertical movement

    Any ideas ?

  4. #4
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: Adding Minimize and Maximize Button to Project

    Quote Originally Posted by leachim View Post
    Bang on the money !

    Thanks

    Although I tried it in a low screen resolution where the Form was bigger than the screen, but there were no scroll bars for horizontal or vertical movement

    Any ideas ?
    Scrollbars are used to scroll controls ( like a TextBox ) that is on your form. It doesn't scroll the form itself.
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

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

    Re: Adding Minimize and Maximize Button to Project

    You can check out MartinLiss 's signature for a scrollable form example
    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

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