home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form FrmConnect
- Caption = "Connection"
- ClientHeight = 1095
- ClientLeft = 4995
- ClientTop = 5310
- ClientWidth = 4470
- LinkTopic = "Form1"
- ScaleHeight = 1095
- ScaleWidth = 4470
- StartUpPosition = 2 'CenterScreen
- Begin VB.ComboBox cmbComputer
- Height = 315
- Left = 1560
- Style = 2 'Dropdown List
- TabIndex = 3
- Top = 120
- Width = 2775
- End
- Begin VB.CommandButton Command2
- Caption = "Ok"
- Height = 375
- Left = 3360
- TabIndex = 1
- Top = 600
- Width = 975
- End
- Begin VB.CommandButton Command1
- Caption = "Cancel"
- Height = 375
- Left = 2220
- TabIndex = 0
- Top = 600
- Width = 975
- End
- Begin VB.Label Label1
- Caption = "Select computer"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 180
- Width = 1335
- End
- Attribute VB_Name = "FrmConnect"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Unload FrmConnect
- End Sub
- Private Sub Command2_Click()
- FrmLog.NTEventLogX.MachineName = cmbComputer.Text
- FrmLog.NTEventLogX.Active = False
- Unload FrmConnect
- End Sub
- Private Sub Form_Load()
- cmbComputer.Clear
- Set Servers = FrmLog.NTEventLogX.GetServers("")
- For i = 0 To Servers.Count - 1
- S = Servers.Item(i)
- cmbComputer.AddItem (S)
- If S = FrmLog.NTEventLogX.MachineName Then cmbComputer.ListIndex = i
- Next i
- End Sub
-