Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic (http://www.programmingforums.org/forum18.html)
-   -   How do i make my own minimize button? (http://www.programmingforums.org/showthread.php?t=10175)

Darcksky Jun 4th, 2006 4:54 PM

How do i make my own minimize button?
 
Ho im tryn to make a minimize button to my project because i dont want my form to have border style so i want to make my own button and what is the code to minimize?? the form??

kruptof Jun 4th, 2006 5:06 PM

Minimize: Form1.WindowState = vbMinimized
Maximized: Form1.WindowState = vbMaximized
Normal: Form1.WindowState = vbNormal

Darcksky Jun 4th, 2006 5:57 PM

Hey Thanks for the Code but instead of it going to where all the programs go when they are minimized in teh bottom it goes in the left bottom of the screen and when i open another program it disappears why is this problem?
EDITED:
Well now i know what's the problem its because the form doesnt have a BorderStyle so it shrinks in the left corner of the screen but how do i change it to normal :S!

brownhead Jun 16th, 2006 2:50 AM

BorderStyle=2

Thats a normal window... that will allow it to minimize. I think most except no border will minimize correctly


All times are GMT -5. The time now is 8:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC