Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Black
Button1.ForeColor = Color.White
Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red
Button1.FlatAppearance.BorderSize = 1
Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
End Sub
End Class
Last modified by John Anthony Oliver on 1/31/2011 4:58:45 PM
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Black
Button1.ForeColor = Color.White
Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red
Button1.FlatAppearance.BorderSize = 1
Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
End Sub
End Class
Last modified by John Anthony Oliver on 1/31/2011 4:37:35 PM
.NET 2.0 allows FlatAppearance properties to be set, but the help text says it is read only.
The FlatAppearance property is of type FlatButtonAppearance. You can't set the property value itself, but you can access the property and set the FlatButtonAppearance property values. (See http://msdn2.microsoft.com/en-us/library/system.windows.forms.flatbuttonappearance_members.aspx for a list of ava
Last modified by MollyBos - MSFT on 3/29/2007 7:58:57 PM
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Black
Button1.ForeColor = Color.White
Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red
Button1.FlatAppearance.BorderSize = 1
Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
End Sub
End Class
Last modified by John Anthony Oliver on 1/31/2011 4:25:00 PM
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Black
Button1.ForeColor = Color.White
Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red
Button1.FlatAppearance.BorderSize = 1
Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
End Sub
End Class
Last modified by John Anthony Oliver on 1/31/2011 4:25:46 PM