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 / Ch8-InheritAForm / Form1.vb < prev   
Text File  |  2001-08-09  |  2KB  |  71 lines

  1. Public Class Form1
  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 Button1 As System.Windows.Forms.Button
  26.     Friend WithEvents Button2 As System.Windows.Forms.Button
  27.  
  28.     'Required by the Windows Form Designer
  29.     Private components As System.ComponentModel.Container
  30.  
  31.     'NOTE: The following procedure is required by the Windows Form Designer
  32.     'It can be modified using the Windows Form Designer.  
  33.     'Do not modify it using the code editor.
  34.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  35.         Me.Button1 = New System.Windows.Forms.Button()
  36.         Me.Button2 = New System.Windows.Forms.Button()
  37.         Me.SuspendLayout()
  38.         '
  39.         'Button1
  40.         '
  41.         Me.Button1.DialogResult = System.Windows.Forms.DialogResult.OK
  42.         Me.Button1.Location = New System.Drawing.Point(208, 16)
  43.         Me.Button1.Name = "Button1"
  44.         Me.Button1.Size = New System.Drawing.Size(80, 24)
  45.         Me.Button1.TabIndex = 0
  46.         Me.Button1.Text = "&Ok"
  47.         '
  48.         'Button2
  49.         '
  50.         Me.Button2.DialogResult = System.Windows.Forms.DialogResult.Cancel
  51.         Me.Button2.Location = New System.Drawing.Point(208, 48)
  52.         Me.Button2.Name = "Button2"
  53.         Me.Button2.Size = New System.Drawing.Size(80, 24)
  54.         Me.Button2.TabIndex = 1
  55.         Me.Button2.Text = "&Cancel"
  56.         '
  57.         'Form1
  58.         '
  59.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  60.         Me.ClientSize = New System.Drawing.Size(292, 157)
  61.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button2, Me.Button1})
  62.         Me.Name = "Form1"
  63.         Me.Text = "Base dialog"
  64.         Me.ResumeLayout(False)
  65.  
  66.     End Sub
  67.  
  68. #End Region
  69.  
  70. End Class
  71.