4 BackColor = &H80000005&
5 BorderStyle = 1 'Fixed Single
18 strikethrough = 0 'False
20 ForeColor = &H80000008&
31 Begin VB.Timer md_timeout
35 Begin VB.CommandButton cancel_button
37 BackColor = &H80000005&
40 name = "MS Sans Serif"
46 strikethrough = 0 'False
54 Begin VB.TextBox DebugWin
57 name = "MS Sans Serif"
63 strikethrough = 0 'False
68 ScrollBars = 2 'Vertical
73 Begin IPOCXLib.IPocx TCP
85 Begin VB.Label StatMsg
88 BackColor = &H80000005&
89 Caption = "Connecting to server, please wait..."
91 name = "MS Sans Serif"
97 strikethrough = 0 'False
99 ForeColor = &H80000008&
108 Attribute VB_Name = "IPC"
109 Attribute VB_Creatable = False
110 Attribute VB_Exposed = False
113 Private Sub cancel_button_Click()
115 DebugWin.Text = "CANCELLED!"
118 Private Sub Form_Load()
123 IPC.Top = Int((MainWin.Height - IPC.Height) / 3)
124 IPC.Left = Int((MainWin.Width - IPC.Width) / 2)
131 h$ = StripTrailingWhiteSpace(CurrBBS.PhoneOrAddress)
132 p$ = StripTrailingWhiteSpace(Str$(CurrBBS.TCPport))
135 statmsg.Caption = "Trying <" + h$ + "> port <" + p$ + ">"
141 If Cancelled = True Then GoTo endload
144 statmsg.Caption = serv_gets()
149 DoubleClickAction$ = GetPrivateProfileVBString("Preferences", "DoubleClickAction", "GOTO", "WINCIT.INI")
151 md_timeout.Interval = KeepAlive
152 md_timeout.Enabled = True
158 If Cancelled = True Then
159 TCP.Connected = False
167 Private Sub Form_Unload(Cancel As Integer)
169 If tcpconnected = True Then
175 Private Sub md_timeout_Timer()
176 md_timeout.Enabled = False
177 If begin_trans() = True Then
180 If Left$(a$, 1) <> "2" Then
183 If Mid$(a$, 4, 1) = "*" Then
186 If Left$(a$, 1) = "1" Then
190 If a$ <> "000" Then ex$ = ex$ + a$ + Chr$(13) + Chr$(10)
191 Loop Until a$ = "000"
192 MsgBox ex$, 0, "Express message"
197 md_timeout.Interval = KeepAlive
198 md_timeout.Enabled = True
202 Private Sub TCP_DataReceived(ByVal data As String, ByVal l As Long)
204 TCPinbuf$ = TCPinbuf$ + data
208 Private Sub TCP_Disconnected()