Group Box Codes

Example : How to Color the Group Box Background.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load        
        GroupBox1.BackColor = Color.Red
End Sub
Example : How to Hide the Group Box.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        GroupBox1.Visible = False        
End Sub
Example : How to Show the hidden Group Box.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        GroupBox1.Visible = True
End Sub

Panel Codes

Example : How to Show the hidden Panel.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Panel1.Show()
        'Panel1.Visible = True
End Sub
Example : How to Hide the Panel.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Panel1.Hide()
        'Panel1.Visible = False
End Sub
Example : How to Color the Background of the Panel.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Panel1.BackColor = Color.Red
End Sub
Example : How to Set Border Line in the Panel Control.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Panel1.BorderStyle = BorderStyle.FixedSingle
End Sub

Loading

Categories: VB .Net Codes

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.