home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin MDIForm frmChat
- Caption = "SuperChat World-Wide Chat"
- ClientHeight = 10095
- ClientLeft = 165
- ClientTop = 585
- ClientWidth = 14805
- Height = 10500
- Icon = CHAT.FRX:0000
- Left = 105
- LinkTopic = "MDIForm1"
- Top = 240
- Width = 14925
- DefInt A-Z
- Sub MDIForm_Load ()
- '-- This is where it all begins.
- '-- The user can specify another port to listen on
- ' on the command line. The default is 2776 (picked
- ' it out of a hat
- If Len(Command$) Then
- ListenPort = Val(Command$)
- Else
- ListenPort = 2766
- End If
- '-- Set the local port to listen on
- frmLocal.dssLocal.LocalPort = ListenPort
- '-- Try and listen
- On Error Resume Next
- frmLocal.dssLocal.Action = DSSOCK_LISTEN
- '-- Show the form
- frmLocal.Show
- End Sub
- Sub MDIForm_Unload (Cancel As Integer)
- '-- Before unloading, make sure to
- ' unload all of the other forms
- For i = 0 To Forms.Count - 1
- If Not Forms(i) Is Me Then
- Unload Forms(i)
- End If
- Next
- '-- bye
- End
- End Sub
-