Constrol Anchor : Anchor Dock « GUI « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » GUI » Anchor Dock 
14.56.1.Constrol Anchor
Constrol Anchor
Imports System.Windows.Forms

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

Public Class Form1
    Inherits System.Windows.Forms.Form

    Public Sub New()
        MyBase.New()

        InitializeComponent()

    End Sub

    Private components As System.ComponentModel.IContainer

    Friend WithEvents textBox1 As System.Windows.Forms.TextBox
    Friend WithEvents label1 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()Private Sub InitializeComponent()
        Me.textBox1 = New System.Windows.Forms.TextBox()
        Me.label1 = New System.Windows.Forms.Label()
        Me.SuspendLayout()

        Me.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left_
                    Or System.Windows.Forms.AnchorStyles.Right)
        Me.textBox1.Location = New System.Drawing.Point(14416)
        Me.textBox1.Name = "textBox1"
        Me.textBox1.Size = New System.Drawing.Size(11620)
        Me.textBox1.TabIndex = 3
        Me.textBox1.Text = "textBox1"
        '
        'label1
        '
        Me.label1.Location = New System.Drawing.Point(816)
        Me.label1.Name = "label1"
        Me.label1.Size = New System.Drawing.Size(12520)
        Me.label1.TabIndex = 2
        Me.label1.Text = "My perfectly-sized label"
        Me.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(513)
        Me.ClientSize = New System.Drawing.Size(27254)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.textBox1, Me.label1})
        Me.ResumeLayout(False)

    End Sub
End Class
14.56.Anchor Dock
14.56.1.Constrol AnchorConstrol Anchor
14.56.2.Control DockingControl Docking
14.56.3.Dock more than one controls to the bottomDock more than one controls to the bottom
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.