Panel.BorderStyle : Panel « System.Windows.Forms « VB.Net by API

Home
VB.Net by API
1.Microsoft.VisualBasic
2.Microsoft.Win32
3.System
4.System.Collections
5.System.Collections.Generic
6.System.Collections.Specialized
7.System.ComponentModel
8.System.Configuration.ConfigurationSettings
9.System.Data
10.System.Data.Odbc
11.System.Data.OleDb
12.System.Data.OracleClient
13.System.Data.SqlClient
14.System.Diagnostics
15.System.Drawing
16.System.Drawing.Drawing2D
17.System.Drawing.Imaging
18.System.Drawing.Printing
19.System.Drawing.Text
20.System.Globalization
21.System.IO
22.System.IO.IsolatedStorage
23.System.IO.Ports
24.System.Media
25.System.Messaging
26.System.Net
27.System.Net.Sockets
28.System.Reflection
29.System.Runtime.InteropServices
30.System.Runtime.Remoting.Channels
31.System.Runtime.Serialization
32.System.Runtime.Serialization.Formatters.Binary
33.System.Runtime.Serialization.Formatters.Soap
34.System.Security.Cryptography
35.System.Security.Cryptography.X509Certificates
36.System.Security.Permissions
37.System.Security.Principal
38.System.ServiceProcess
39.System.Text
40.System.Text.RegularExpressions
41.System.Threading
42.System.Web
43.System.Web.Mail
44.System.Windows.Forms
45.System.Xml
46.System.Xml.Schema
47.System.Xml.Serialization
48.System.Xml.Xsl
VB.Net
VB.Net Tutorial
VB.Net by API » System.Windows.Forms » Panel 
Panel.BorderStyle
  

Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms

public class PanelInAction
   public Shared Sub Main
        Application.Run(New Form1)
   End Sub
End class

Public Class Form1
    Inherits System.Windows.Forms.Form

    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label


    Dim Panel1 As New Panel
    Dim Panel2 As New Panel
    Dim WithEvents RadioButton1 As New RadioButton
    Dim WithEvents RadioButton2 As New RadioButton
    Dim WithEvents RadioButton3 As New RadioButton
    Dim WithEvents RadioButton4 As New RadioButton
    Dim WithEvents RadioButton5 As New RadioButton
    Dim WithEvents RadioButton6 As New RadioButton

    Public Sub New()
        MyBase.New()

        Me.TextBox1 = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.SuspendLayout()

        Me.TextBox1.Location = New System.Drawing.Point(8200)
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.Size = New System.Drawing.Size(27220)
        Me.TextBox1.TabIndex = 0
        Me.TextBox1.Text = ""

        Me.AutoScaleBaseSize = New System.Drawing.Size(513)
        Me.ClientSize = New System.Drawing.Size(292273)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.TextBox1)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)


        Panel1.Location = New Point(2060)
        Panel1.Size = New Size(110100)
        Panel1.BorderStyle = BorderStyle.FixedSingle

        Panel2.Location = New Point(14060)
        Panel2.Size = New Size(110100)
        Panel2.BorderStyle = BorderStyle.FixedSingle

        RadioButton1.Location = New Point(616)
        RadioButton1.Text = "Radio Button 1"
        RadioButton1.Size = New Size(12016)

        RadioButton2.Location = New Point(636)
        RadioButton2.Text = "Radio Button 2"
        RadioButton2.Size = New Size(12020)

        RadioButton3.Location = New Point(656)
        RadioButton3.Text = "Radio Button 3"
        RadioButton3.Size = New Size(12020)

        RadioButton4.Location = New Point(616)
        RadioButton4.Text = "Radio Button 4"
        RadioButton4.Size = New Size(12016)

        RadioButton5.Location = New Point(636)
        RadioButton5.Text = "Radio Button 5"
        RadioButton5.Size = New Size(12020)

        RadioButton6.Location = New Point(656)
        RadioButton6.Text = "Radio Button 6"
        RadioButton6.Size = New Size(12020)

        Panel1.Controls.Add(RadioButton1)
        Panel1.Controls.Add(RadioButton2)
        Panel1.Controls.Add(RadioButton3)

        Panel2.Controls.Add(RadioButton4)
        Panel2.Controls.Add(RadioButton5)
        Panel2.Controls.Add(RadioButton6)

        Controls.Add(Panel1)
        Controls.Add(Panel2)

        AddHandler RadioButton1.CheckedChanged, AddressOf _
            RadioButton1_CheckedChanged
        AddHandler RadioButton2.CheckedChanged, AddressOf _
            RadioButton2_CheckedChanged
        AddHandler RadioButton3.CheckedChanged, AddressOf _
            RadioButton3_CheckedChanged
        AddHandler RadioButton4.CheckedChanged, AddressOf _
            RadioButton4_CheckedChanged
        AddHandler RadioButton5.CheckedChanged, AddressOf _
            RadioButton5_CheckedChanged
        AddHandler RadioButton6.CheckedChanged, AddressOf _
            RadioButton6_CheckedChanged

    End Sub

    Private Sub RadioButton1_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 1"
    End Sub

    Private Sub RadioButton2_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 2"
    End Sub

    Private Sub RadioButton3_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 3"
    End Sub
    Private Sub RadioButton4_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 4"
    End Sub
    Private Sub RadioButton5_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 5"
    End Sub
    Private Sub RadioButton6_CheckedChanged(ByVal sender As _
        System.Object, ByVal e As System.EventArgs
        TextBox1.Text = "You clicked radio button 6"
    End Sub
End Class

   
    
  
Related examples in the same category
1.Panel.AutoScroll
2.Panel.Controls.Add
3.Panel.Refresh()
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.