home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic .NET - Read Less - Learn More / Visual_Basic.NET_Read_Less_Learn_More_Richard_Bowman_Visual_2002.iso / Resources / Code / Ch2-DialogBoxes / Form2.vb < prev   
Text File  |  2001-06-24  |  3KB  |  96 lines

  1. Public Class Form2
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.     Friend WithEvents Label1 As System.Windows.Forms.Label
  26.     Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
  27.     Friend WithEvents Button2 As System.Windows.Forms.Button
  28.     Friend WithEvents Button1 As System.Windows.Forms.Button
  29.  
  30.     'Required by the Windows Form Designer
  31.     Private components As System.ComponentModel.Container
  32.  
  33.     'NOTE: The following procedure is required by the Windows Form Designer
  34.     'It can be modified using the Windows Form Designer.  
  35.     'Do not modify it using the code editor.
  36.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  37.         Me.Label1 = New System.Windows.Forms.Label()
  38.         Me.TextBox1 = New System.Windows.Forms.TextBox()
  39.         Me.Button2 = New System.Windows.Forms.Button()
  40.         Me.Button1 = New System.Windows.Forms.Button()
  41.         Me.SuspendLayout()
  42.         '
  43.         'Label1
  44.         '
  45.         Me.Label1.Location = New System.Drawing.Point(16, 32)
  46.         Me.Label1.Name = "Label1"
  47.         Me.Label1.Size = New System.Drawing.Size(96, 16)
  48.         Me.Label1.TabIndex = 0
  49.         Me.Label1.Text = "Enter your name:"
  50.         '
  51.         'TextBox1
  52.         '
  53.         Me.TextBox1.Location = New System.Drawing.Point(32, 56)
  54.         Me.TextBox1.Name = "TextBox1"
  55.         Me.TextBox1.Size = New System.Drawing.Size(224, 20)
  56.         Me.TextBox1.TabIndex = 1
  57.         Me.TextBox1.Text = "TextBox1"
  58.         '
  59.         'Button2
  60.         '
  61.         Me.Button2.DialogResult = System.Windows.Forms.DialogResult.Cancel
  62.         Me.Button2.Location = New System.Drawing.Point(184, 168)
  63.         Me.Button2.Name = "Button2"
  64.         Me.Button2.Size = New System.Drawing.Size(88, 24)
  65.         Me.Button2.TabIndex = 2
  66.         Me.Button2.Text = "&Cancel"
  67.         '
  68.         'Button1
  69.         '
  70.         Me.Button1.DialogResult = System.Windows.Forms.DialogResult.OK
  71.         Me.Button1.Location = New System.Drawing.Point(80, 168)
  72.         Me.Button1.Name = "Button1"
  73.         Me.Button1.Size = New System.Drawing.Size(96, 24)
  74.         Me.Button1.TabIndex = 3
  75.         Me.Button1.Text = "&Ok"
  76.         '
  77.         'Form2
  78.         '
  79.         Me.AcceptButton = Me.Button1
  80.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  81.         Me.CancelButton = Me.Button2
  82.         Me.ClientSize = New System.Drawing.Size(288, 205)
  83.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1, Me.Button2, Me.TextBox1, Me.Label1})
  84.         Me.MaximizeBox = False
  85.         Me.MinimizeBox = False
  86.         Me.Name = "Form2"
  87.         Me.ShowInTaskbar = False
  88.         Me.Text = "Form2"
  89.         Me.ResumeLayout(False)
  90.  
  91.     End Sub
  92.  
  93. #End Region
  94.  
  95. End Class
  96.