Results 1 to 6 of 6

Thread: Minimize form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    274

    Minimize form

    I have a form without the border, and i want to put a button the the top panel on the form so that once its clicked, the form will be minimize.. How can that be done?

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Minimize form

    Me.WindowState = vbMinimized

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    274

    Re: Minimize form

    its minized but i cant see it at the taskbar.

  4. #4
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Minimize form

    Quote Originally Posted by wence
    its minized but i cant see it at the taskbar.
    Changing the BorderStyle property may also change the setting of the ShowInTaskbar property, so you probably need to set the ShowInTaskbar property back to True.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Minimize form

    Typically what is shown in the taskbar is the windows caption. A borderless form does not have a caption.

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

    Re: Minimize form

    Set the ShowInTaskBar property to TRUE (after setting BorderStyle to None… it gets reset automatically if you change it).

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