VERSION 5.00
Begin VB.Form frmRemoteList 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Remote Users"
   ClientHeight    =   3390
   ClientLeft      =   5280
   ClientTop       =   2895
   ClientWidth     =   5760
   ControlBox      =   0   'False
   Icon            =   "frmRemoteList.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3390
   ScaleWidth      =   5760
   Begin VB.Timer Timer1 
      Interval        =   500
      Left            =   120
      Top             =   240
   End
   Begin VB.CommandButton Command3 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   4200
      TabIndex        =   5
      Top             =   2520
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Start Session"
      Enabled         =   0   'False
      Height          =   495
      Left            =   4200
      TabIndex        =   4
      Top             =   1920
      Width           =   1335
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Don't allow any more"
      Height          =   375
      Left            =   4200
      TabIndex        =   3
      Top             =   1320
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Remove"
      Height          =   375
      Left            =   4200
      TabIndex        =   2
      Top             =   720
      Width           =   1335
   End
   Begin VB.ListBox List1 
      Height          =   2595
      Left            =   840
      TabIndex        =   0
      Top             =   360
      Width           =   3135
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "Remote users that want to participate in the session:"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   0
      Width           =   5415
   End
End
Attribute VB_Name = "frmRemoteList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Virtual Hypnotist
'©2003-2008 FollowTheWatch Software
'http://vhypno.sourceforge.net
'http://sourceforge.net/projects/vhypno
'Contact - followthewatch55@yahoo.com

'This program is free software; you can redistribute it and/or
'modify it under the terms of the GNU General Public License
'as published by the Free Software Foundation; either version 2
'of the License, or (at your option) any later version.

'This program is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with this program; if not, write to the Free Software
'Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

Option Explicit
Public NoMore As Boolean
Public ConnectCount As Integer

Private Sub Check1_Click()
If Check1.value = 1 Then NoMore = True Else NoMore = False
End Sub

Private Sub Command1_Click()
If List1.ListIndex = -1 Then Exit Sub
'notify client of drop
If aimSignOn.wskAIM.State = sckConnected Then Call SendProc(2, "toc_chat_send " & ClientSN & " " & Chr(34) & "<HTML>" & " vhcmd <drop> " + List1.List(List1.ListIndex) + " /vhcmd " & "</HTML>" & Chr(34) & Chr(0))
'remove user from list
List1.RemoveItem (List1.ListIndex)
End Sub

Private Sub Command2_Click()
frmRemote.Show
Me.Hide
End Sub

Private Sub Command3_Click()
List1.Clear
Me.Hide
End Sub

Private Sub Form_Load()
Me.Left = (ScreenX / 2) - (Me.Width / 2)
Me.top = (ScreenY / 2) - (Me.Height / 2)
End Sub

Private Sub Form_Unload(Cancel As Integer)
Cancel = 1
Me.Hide
End Sub

Private Sub Timer1_Timer()
If List1.ListCount > 0 Then Command2.Enabled = True Else Command2.Enabled = False
End Sub
