Likestodraw Posted September 29, 2012 Author Share Posted September 29, 2012 I am trying to create the minimize and maximize buttons just through code (I set the form border to none) and can't seem to find out how to come up with the code. The close button is fine. Link to comment Share on other sites More sharing options...
JeffSventora Posted September 30, 2012 Share Posted September 30, 2012 Minimize and maximize? You want to set the form's WindowState property, not the border. Link to comment Share on other sites More sharing options...
Likestodraw Posted September 30, 2012 Author Share Posted September 30, 2012 No, I'm saying I set the border to none, so I don't have these buttons, but want to know how to recreate them in code. Link to comment Share on other sites More sharing options...
Exception Posted October 1, 2012 Share Posted October 1, 2012 Me.WindowState = FormWindowState.MaximizedMe.WindowState = FormWindowState.MinimizedHm, apparently, IPB takes formatting, too. Link to comment Share on other sites More sharing options...
Mal Posted October 8, 2012 Share Posted October 8, 2012 Oh, I get what you're saying. You want to make your own Maximize and Minimize buttons. Easypeazy. First, make similar graphics; the minimize button will be the easiest. Just create a small bitmap image with an underscore on it (_). The maximize button will be a little more difficult to do, see as how you have to rotate and align underscores, but by now you've already gotten the principle down. Next, make 2 buttons on your form and scale them down to the appropriate size; second, add the images to the button.Edit: You can also make your own buttons and assign them inherited properties through code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now