Button Properties in VB.NET
What are all the commonly used button control properties in VB.Net?
Explanation
Button Properties in VB.NET
Following table lists the Properties, Events, Methods used commonly with the Button Control in Visual Basic.net 2008.
Properties:
Properties |
Description |
Visible |
Property used to make the control visible or invisible |
Enabled |
This property is used to enable the control. |
Width |
This property is used to specify the width of the control. |
Font |
Property used to set the font properties like bold, Italic, Name and so on. |
Height |
Property used to specify the height. |
Width |
Property is used to set the width of the control. |
Left |
Property is set the X coordinate of the control. |
BackColor |
Property is used set the background color of the control. |
Image |
Property is used to set a background picture for the control. |
DialogResult |
Property is used to set or get the value returned to the parent from when the button is clicked. |
Image |
Property is used to set a a background picture for the control. |
ImageAlign |
Property is used to get or set alignment of the image. |
ImageList |
Property is used to set or get the Image List that contains the images displayed. |
Methods:
Method |
Description |
PerformClick |
Method used to generate a click event for the radio button. |
Events:
Events |
Description |
Enter |
Triggered when Command Button Control gets focus. |
Click |
Triggered when the control is clicked. |
Leave |
Triggered when control looses focus. |