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-OwnedForms / FormToolWindow.vb < prev   
Text File  |  2001-06-24  |  2KB  |  72 lines

  1. Public Class FormToolWindow
  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.  
  27.     'Required by the Windows Form Designer
  28.     Private components As System.ComponentModel.Container
  29.  
  30.     'NOTE: The following procedure is required by the Windows Form Designer
  31.     'It can be modified using the Windows Form Designer.  
  32.     'Do not modify it using the code editor.
  33.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  34.         Me.Button1 = New System.Windows.Forms.Button()
  35.         Me.SuspendLayout()
  36.         '
  37.         'Button1
  38.         '
  39.         Me.Button1.Location = New System.Drawing.Point(8, 16)
  40.         Me.Button1.Name = "Button1"
  41.         Me.Button1.Size = New System.Drawing.Size(88, 40)
  42.         Me.Button1.TabIndex = 0
  43.         Me.Button1.Text = "Open File..."
  44.         '
  45.         'FormToolWindow
  46.         '
  47.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  48.         Me.ClientSize = New System.Drawing.Size(104, 225)
  49.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1})
  50.         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow
  51.         Me.MaximizeBox = False
  52.         Me.MinimizeBox = False
  53.         Me.Name = "FormToolWindow"
  54.         Me.ShowInTaskbar = False
  55.         Me.Text = "Tools"
  56.         Me.ResumeLayout(False)
  57.  
  58.     End Sub
  59.  
  60. #End Region
  61.  
  62.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  63.         Dim frm As FormMain = Me.Owner
  64.         frm.FileOpenRoutine()
  65.     End Sub
  66.  
  67.     Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  68.  
  69.  
  70.     End Sub
  71. End Class
  72.