Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 4th, 2006, 4:54 PM   #1
Darcksky
Newbie
 
Join Date: May 2006
Posts: 18
Rep Power: 0 Darcksky is on a distinguished road
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??
Darcksky is offline   Reply With Quote
Old Jun 4th, 2006, 5:06 PM   #2
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3 kruptof is on a distinguished road
Minimize: Form1.WindowState = vbMinimized
Maximized: Form1.WindowState = vbMaximized
Normal: Form1.WindowState = vbNormal
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jun 4th, 2006, 5:57 PM   #3
Darcksky
Newbie
 
Join Date: May 2006
Posts: 18
Rep Power: 0 Darcksky is on a distinguished road
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 !
Darcksky is offline   Reply With Quote
Old Jun 16th, 2006, 2:50 AM   #4
brownhead
Programmer
 
Join Date: Mar 2006
Location: California
Posts: 37
Rep Power: 0 brownhead is on a distinguished road
Send a message via AIM to brownhead Send a message via MSN to brownhead
BorderStyle=2

Thats a normal window... that will allow it to minimize. I think most except no border will minimize correctly
brownhead is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:07 PM.

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