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 / Ch3-ExploreTreeViews / Form1.vb < prev    next >
Text File  |  2001-09-16  |  3KB  |  72 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 ImageList1 As System.Windows.Forms.ImageList
  26.     Friend WithEvents TreeView1 As System.Windows.Forms.TreeView
  27.     Private components As System.ComponentModel.IContainer
  28.  
  29.     'Required by the Windows Form Designer
  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.components = New System.ComponentModel.Container()
  36.         Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
  37.         Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
  38.         Me.TreeView1 = New System.Windows.Forms.TreeView()
  39.         Me.SuspendLayout()
  40.         '
  41.         'ImageList1
  42.         '
  43.         Me.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
  44.         Me.ImageList1.ImageSize = New System.Drawing.Size(32, 32)
  45.         Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
  46.         Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
  47.         '
  48.         'TreeView1
  49.         '
  50.         Me.TreeView1.ImageList = Me.ImageList1
  51.         Me.TreeView1.Location = New System.Drawing.Point(48, 32)
  52.         Me.TreeView1.Name = "TreeView1"
  53.         Me.TreeView1.Nodes.AddRange(New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode("Item 1", New System.Windows.Forms.TreeNode() {New System.Windows.Forms.TreeNode("Child Item 1")}), New System.Windows.Forms.TreeNode("Item 2")})
  54.         Me.TreeView1.SelectedImageIndex = 1
  55.         Me.TreeView1.Size = New System.Drawing.Size(208, 128)
  56.         Me.TreeView1.TabIndex = 0
  57.         '
  58.         'Form1
  59.         '
  60.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  61.         Me.ClientSize = New System.Drawing.Size(292, 197)
  62.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TreeView1})
  63.         Me.Name = "Form1"
  64.         Me.Text = "Form1"
  65.         Me.ResumeLayout(False)
  66.  
  67.     End Sub
  68.  
  69. #End Region
  70.  
  71. End Class
  72.