Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
4.9 KiB

  1. Public Class ListForm
  2. Inherits System.Windows.Forms.Form
  3. #Region " Windows Form Designer generated code "
  4. Public Sub New()
  5. MyBase.New()
  6. 'This call is required by the Windows Form Designer.
  7. InitializeComponent()
  8. 'Add any initialization after the InitializeComponent() call
  9. End Sub
  10. 'Form overrides dispose to clean up the component list.
  11. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  12. If disposing Then
  13. If Not (components Is Nothing) Then
  14. components.Dispose()
  15. End If
  16. End If
  17. MyBase.Dispose(disposing)
  18. End Sub
  19. Friend WithEvents Panel2 As System.Windows.Forms.Panel
  20. Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
  21. Friend WithEvents LogTab As System.Windows.Forms.TabPage
  22. Friend WithEvents ErrTab As System.Windows.Forms.TabPage
  23. Friend WithEvents TheList As System.Windows.Forms.ListBox
  24. Friend WithEvents ErrList As System.Windows.Forms.ListBox
  25. 'Required by the Windows Form Designer
  26. Private components As System.ComponentModel.Container
  27. 'NOTE: The following procedure is required by the Windows Form Designer
  28. 'It can be modified using the Windows Form Designer.
  29. 'Do not modify it using the code editor.
  30. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  31. Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(ListForm))
  32. Me.ErrTab = New System.Windows.Forms.TabPage()
  33. Me.ErrList = New System.Windows.Forms.ListBox()
  34. Me.TheList = New System.Windows.Forms.ListBox()
  35. Me.TabControl1 = New System.Windows.Forms.TabControl()
  36. Me.LogTab = New System.Windows.Forms.TabPage()
  37. Me.Panel2 = New System.Windows.Forms.Panel()
  38. Me.ErrTab.SuspendLayout()
  39. Me.TabControl1.SuspendLayout()
  40. Me.LogTab.SuspendLayout()
  41. Me.Panel2.SuspendLayout()
  42. Me.SuspendLayout()
  43. '
  44. 'ErrTab
  45. '
  46. Me.ErrTab.Controls.AddRange(New System.Windows.Forms.Control() {Me.ErrList})
  47. Me.ErrTab.Location = New System.Drawing.Point(4, 22)
  48. Me.ErrTab.Name = "ErrTab"
  49. Me.ErrTab.Size = New System.Drawing.Size(296, 228)
  50. Me.ErrTab.TabIndex = 1
  51. Me.ErrTab.Text = "Errors"
  52. '
  53. 'ErrList
  54. '
  55. Me.ErrList.Dock = System.Windows.Forms.DockStyle.Fill
  56. Me.ErrList.Name = "ErrList"
  57. Me.ErrList.Size = New System.Drawing.Size(296, 225)
  58. Me.ErrList.TabIndex = 0
  59. '
  60. 'TheList
  61. '
  62. Me.TheList.Dock = System.Windows.Forms.DockStyle.Fill
  63. Me.TheList.Name = "TheList"
  64. Me.TheList.ScrollAlwaysVisible = True
  65. Me.TheList.Size = New System.Drawing.Size(296, 225)
  66. Me.TheList.TabIndex = 0
  67. '
  68. 'TabControl1
  69. '
  70. Me.TabControl1.Controls.AddRange(New System.Windows.Forms.Control() {Me.LogTab, Me.ErrTab})
  71. Me.TabControl1.Dock = System.Windows.Forms.DockStyle.Fill
  72. Me.TabControl1.Name = "TabControl1"
  73. Me.TabControl1.SelectedIndex = 0
  74. Me.TabControl1.Size = New System.Drawing.Size(304, 254)
  75. Me.TabControl1.TabIndex = 1
  76. '
  77. 'LogTab
  78. '
  79. Me.LogTab.Controls.AddRange(New System.Windows.Forms.Control() {Me.TheList})
  80. Me.LogTab.Location = New System.Drawing.Point(4, 22)
  81. Me.LogTab.Name = "LogTab"
  82. Me.LogTab.Size = New System.Drawing.Size(296, 228)
  83. Me.LogTab.TabIndex = 0
  84. Me.LogTab.Text = "Log"
  85. '
  86. 'Panel2
  87. '
  88. Me.Panel2.Controls.AddRange(New System.Windows.Forms.Control() {Me.TabControl1})
  89. Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
  90. Me.Panel2.Name = "Panel2"
  91. Me.Panel2.Size = New System.Drawing.Size(304, 254)
  92. Me.Panel2.TabIndex = 2
  93. '
  94. 'ListForm
  95. '
  96. Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  97. Me.ClientSize = New System.Drawing.Size(304, 254)
  98. Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Panel2})
  99. Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
  100. Me.Name = "ListForm"
  101. Me.Text = "ListForm"
  102. Me.TopMost = True
  103. Me.ErrTab.ResumeLayout(False)
  104. Me.TabControl1.ResumeLayout(False)
  105. Me.LogTab.ResumeLayout(False)
  106. Me.Panel2.ResumeLayout(False)
  107. Me.ResumeLayout(False)
  108. End Sub
  109. #End Region
  110. Public Sub Log(ByVal line As String)
  111. TheList.SelectedIndex = TheList.Items.Add(line)
  112. End Sub
  113. Public Sub LogErr(ByVal line As String)
  114. ErrList.SelectedIndex = ErrList.Items.Add(line)
  115. End Sub
  116. Private Sub TheList_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
  117. 'LogText.Text = TheList.SelectedItems(0)
  118. End Sub
  119. End Class