2 Begin VB.Form WhoIsOnline
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
6 Caption = "Who is currently online..."
13 name = "MS Sans Serif"
19 strikethrough = 0 'False
21 ForeColor = &H80000008&
32 Begin VB.Timer WhoRefresh
36 Begin VB.VScrollBar TheScroll
43 Begin VB.CommandButton ok_button
45 BackColor = &H80000005&
53 Begin VB.Label MaxUsersDisplay
56 BackColor = &H80000005&
57 BackStyle = 0 'Transparent
58 Caption = "Total number of users:"
60 name = "MS Sans Serif"
66 strikethrough = 0 'False
68 ForeColor = &H80000008&
78 BackColor = &H80000005&
79 BackStyle = 0 'Transparent
82 name = "MS Sans Serif"
88 strikethrough = 0 'False
90 ForeColor = &H80000008&
100 BackColor = &H80000005&
101 BackStyle = 0 'Transparent
102 Caption = "User Name"
104 name = "MS Sans Serif"
110 strikethrough = 0 'False
112 ForeColor = &H80000008&
119 Begin VB.Label Label1
120 Alignment = 2 'Center
122 BackColor = &H80000005&
123 BackStyle = 0 'Transparent
126 name = "MS Sans Serif"
132 strikethrough = 0 'False
134 ForeColor = &H80000008&
141 Begin VB.Label RoomName
142 Alignment = 2 'Center
144 BackColor = &H00C0C0C0&
146 name = "MS Sans Serif"
152 strikethrough = 0 'False
154 ForeColor = &H80000008&
162 Begin VB.Label UserName
163 Alignment = 2 'Center
165 BackColor = &H00C0C0C0&
167 name = "MS Sans Serif"
173 strikethrough = 0 'False
175 ForeColor = &H80000008&
183 Begin VB.Label SessionNum
184 Alignment = 2 'Center
186 BackColor = &H00C0C0C0&
188 name = "MS Sans Serif"
194 strikethrough = 0 'False
196 ForeColor = &H80000008&
204 Begin VB.Label RoomName
205 Alignment = 2 'Center
207 BackColor = &H00C0C0C0&
209 name = "MS Sans Serif"
215 strikethrough = 0 'False
217 ForeColor = &H80000008&
225 Begin VB.Label UserName
226 Alignment = 2 'Center
228 BackColor = &H00C0C0C0&
230 name = "MS Sans Serif"
236 strikethrough = 0 'False
238 ForeColor = &H80000008&
246 Begin VB.Label SessionNum
247 Alignment = 2 'Center
249 BackColor = &H00C0C0C0&
251 name = "MS Sans Serif"
257 strikethrough = 0 'False
259 ForeColor = &H80000008&
267 Begin VB.Label RoomName
268 Alignment = 2 'Center
270 BackColor = &H00C0C0C0&
272 name = "MS Sans Serif"
278 strikethrough = 0 'False
280 ForeColor = &H80000008&
288 Begin VB.Label UserName
289 Alignment = 2 'Center
291 BackColor = &H00C0C0C0&
293 name = "MS Sans Serif"
299 strikethrough = 0 'False
301 ForeColor = &H80000008&
309 Begin VB.Label SessionNum
310 Alignment = 2 'Center
312 BackColor = &H00C0C0C0&
314 name = "MS Sans Serif"
320 strikethrough = 0 'False
322 ForeColor = &H80000008&
330 Begin VB.Label RoomName
331 Alignment = 2 'Center
333 BackColor = &H00C0C0C0&
335 name = "MS Sans Serif"
341 strikethrough = 0 'False
343 ForeColor = &H80000008&
351 Begin VB.Label UserName
352 Alignment = 2 'Center
354 BackColor = &H00C0C0C0&
356 name = "MS Sans Serif"
362 strikethrough = 0 'False
364 ForeColor = &H80000008&
372 Begin VB.Label SessionNum
373 Alignment = 2 'Center
375 BackColor = &H00C0C0C0&
377 name = "MS Sans Serif"
383 strikethrough = 0 'False
385 ForeColor = &H80000008&
393 Begin VB.Label RoomName
394 Alignment = 2 'Center
396 BackColor = &H00C0C0C0&
398 name = "MS Sans Serif"
404 strikethrough = 0 'False
406 ForeColor = &H80000008&
414 Begin VB.Label UserName
415 Alignment = 2 'Center
417 BackColor = &H00C0C0C0&
419 name = "MS Sans Serif"
425 strikethrough = 0 'False
427 ForeColor = &H80000008&
435 Begin VB.Label SessionNum
436 Alignment = 2 'Center
438 BackColor = &H00C0C0C0&
440 name = "MS Sans Serif"
446 strikethrough = 0 'False
448 ForeColor = &H80000008&
456 Begin VB.Label RoomName
457 Alignment = 2 'Center
459 BackColor = &H00C0C0C0&
461 name = "MS Sans Serif"
467 strikethrough = 0 'False
469 ForeColor = &H80000008&
477 Begin VB.Label UserName
478 Alignment = 2 'Center
480 BackColor = &H00C0C0C0&
482 name = "MS Sans Serif"
488 strikethrough = 0 'False
490 ForeColor = &H80000008&
498 Begin VB.Label SessionNum
499 Alignment = 2 'Center
501 BackColor = &H00C0C0C0&
503 name = "MS Sans Serif"
509 strikethrough = 0 'False
511 ForeColor = &H80000008&
519 Begin VB.Label RoomName
520 Alignment = 2 'Center
522 BackColor = &H00C0C0C0&
524 name = "MS Sans Serif"
530 strikethrough = 0 'False
532 ForeColor = &H80000008&
540 Begin VB.Label UserName
541 Alignment = 2 'Center
543 BackColor = &H00C0C0C0&
545 name = "MS Sans Serif"
551 strikethrough = 0 'False
553 ForeColor = &H80000008&
561 Begin VB.Label SessionNum
562 Alignment = 2 'Center
564 BackColor = &H00C0C0C0&
566 name = "MS Sans Serif"
572 strikethrough = 0 'False
574 ForeColor = &H80000008&
582 Begin VB.Label RoomName
583 Alignment = 2 'Center
585 BackColor = &H00C0C0C0&
587 name = "MS Sans Serif"
593 strikethrough = 0 'False
595 ForeColor = &H80000008&
603 Begin VB.Label UserName
604 Alignment = 2 'Center
606 BackColor = &H00C0C0C0&
608 name = "MS Sans Serif"
614 strikethrough = 0 'False
616 ForeColor = &H80000008&
624 Begin VB.Label SessionNum
625 Alignment = 2 'Center
627 BackColor = &H00C0C0C0&
629 name = "MS Sans Serif"
635 strikethrough = 0 'False
637 ForeColor = &H80000008&
645 Begin VB.Label RoomName
646 Alignment = 2 'Center
648 BackColor = &H00C0C0C0&
650 name = "MS Sans Serif"
656 strikethrough = 0 'False
658 ForeColor = &H80000008&
666 Begin VB.Label UserName
667 Alignment = 2 'Center
669 BackColor = &H00C0C0C0&
671 name = "MS Sans Serif"
677 strikethrough = 0 'False
679 ForeColor = &H80000008&
687 Begin VB.Label SessionNum
688 Alignment = 2 'Center
690 BackColor = &H00C0C0C0&
692 name = "MS Sans Serif"
698 strikethrough = 0 'False
700 ForeColor = &H80000008&
708 Begin VB.Label RoomName
709 Alignment = 2 'Center
711 BackColor = &H00C0C0C0&
713 name = "MS Sans Serif"
719 strikethrough = 0 'False
721 ForeColor = &H80000008&
729 Begin VB.Label UserName
730 Alignment = 2 'Center
732 BackColor = &H00C0C0C0&
734 name = "MS Sans Serif"
740 strikethrough = 0 'False
742 ForeColor = &H80000008&
750 Begin VB.Label SessionNum
751 Alignment = 2 'Center
753 BackColor = &H00C0C0C0&
755 name = "MS Sans Serif"
761 strikethrough = 0 'False
763 ForeColor = &H80000008&
771 Begin VB.Label RoomName
772 Alignment = 2 'Center
774 BackColor = &H00C0C0C0&
776 name = "MS Sans Serif"
782 strikethrough = 0 'False
784 ForeColor = &H80000008&
792 Begin VB.Label UserName
793 Alignment = 2 'Center
795 BackColor = &H00C0C0C0&
797 name = "MS Sans Serif"
803 strikethrough = 0 'False
805 ForeColor = &H80000008&
813 Begin VB.Label SessionNum
814 Alignment = 2 'Center
816 BackColor = &H00C0C0C0&
818 name = "MS Sans Serif"
824 strikethrough = 0 'False
826 ForeColor = &H80000008&
834 Begin VB.Label RoomName
835 Alignment = 2 'Center
837 BackColor = &H00C0C0C0&
839 name = "MS Sans Serif"
845 strikethrough = 0 'False
847 ForeColor = &H80000008&
855 Begin VB.Label UserName
856 Alignment = 2 'Center
858 BackColor = &H00C0C0C0&
860 name = "MS Sans Serif"
866 strikethrough = 0 'False
868 ForeColor = &H80000008&
876 Begin VB.Label SessionNum
877 Alignment = 2 'Center
879 BackColor = &H00C0C0C0&
881 name = "MS Sans Serif"
887 strikethrough = 0 'False
889 ForeColor = &H80000008&
898 Attribute VB_Name = "WhoIsOnline"
899 Attribute VB_Creatable = False
900 Attribute VB_Exposed = False
901 Dim SessionNumArr%(1024)
902 Dim UserNameArr$(1024)
903 Dim RoomNameArr$(1024)
907 Private Sub Form_Load()
911 WhoIsOnline.WindowState = 0
912 WhoIsOnline.Top = Int((MainWin.Height - WhoIsOnline.Height) / 3)
913 WhoIsOnline.Left = Int((MainWin.Width - WhoIsOnline.Width) / 2)
923 If begin_trans() = True Then
928 If Left$(a$, 1) = "1" Then
931 If (a$ <> "000") And MaxUsers% < 1024 Then
932 SessionNumArr%(MaxUsers%) = Val(extract$(a$, 0))
933 UserNameArr$(MaxUsers%) = extract$(a$, 1)
934 RoomNameArr$(MaxUsers%) = extract$(a$, 2)
935 MaxUsers% = MaxUsers% + 1
937 Loop Until a$ = "000"
942 If (b% < 0) Then b% = 0
945 MaxUsersDisplay.Caption = "Total number of users: " + Str$(MaxUsers%)
948 WhoRefresh.Interval = 30000
949 WhoRefresh.Enabled = True
955 Private Sub LoadContents()
959 If (TheScroll.Value + a%) <= (MaxUsers% - 1) Then
961 If SessionNumArr(TheScroll.Value + a%) <> 0 Then
962 SessionNum(a%).Caption = Str$(SessionNumArr(TheScroll.Value + a%))
964 SessionNum(a%).Caption = " "
966 UserName(a%).Caption = UserNameArr(TheScroll.Value + a%)
967 RoomName(a%).Caption = RoomNameArr(TheScroll.Value + a%)
971 SessionNum(a%).Caption = " "
972 UserName(a%).Caption = " "
973 RoomName(a%).Caption = " "
982 Private Sub Form_Unload(Cancel As Integer)
983 WhoRefresh.Enabled = False
986 Private Sub ok_button_Click()
991 Private Sub TheScroll_Change()
997 Private Sub WhoRefresh_Timer()