HowTo: Codeing Minimize, Maximize and Close buttons
Use this board to post your code snippets - tips and tricks
7 posts
Page 1 of 1
kk in this tut i'll show you how to code
minimize,maximize and close buttons for your form
ok so make 3 buttons
a close button a minimize button and a maximize button
you ca ether make an image and import it as the background of that button and have a style of Flat
or you can use like a _ or X
kk
so this is the code for:
Maximize button: Me.WindowState = FormWindowState.Maximized
Minimize button: Me.WindowState = FormWindowState.Minimized
Close button: Close
or application.exit

minimize,maximize and close buttons for your form
ok so make 3 buttons
a close button a minimize button and a maximize button
you ca ether make an image and import it as the background of that button and have a style of Flat
or you can use like a _ or X
kk
so this is the code for:
Maximize button: Me.WindowState = FormWindowState.Maximized
Minimize button: Me.WindowState = FormWindowState.Minimized
Close button: Close
or application.exit

This is a Code Snippet, somebody should move it, but nice snippet keep 'em coming! cooll;
Miutubevids wrote:kk in this tut i'll show you how to codeWith VB 2008 you can do
minimize,maximize and close buttons for your form
ok so make 3 buttons
a close button a minimize button and a maximize button
you ca ether make an image and import it as the background of that button and have a style of Flat
or you can use like a _ or X
kk
so this is the code for:
Maximize button: Me.WindowState = FormWindowState.Maximized
Minimize button: Me.WindowState = FormWindowState.Minimized
Close button: Close
or application.exit
Code: Select all
For closing, use
WindowState = ' 0, 1, or 2, 0 = Normal, 1 = Minimize, 2 = Maximize
Code: Select all
It saves time and its easier isn't it End

ohk thx NoWayIn
soz about that yea should have been snippet
:|
soz about that yea should have been snippet
:|
good job.
this is really helpful for the new forms that u make without a border(if u get wat imean)
this is really helpful for the new forms that u make without a border(if u get wat imean)
Cool Snippet..... Thanks. cooll;
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023