home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD1251.psc / Form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-11  |  21.8 KB  |  681 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
  4. Begin VB.Form Form21 
  5.    BorderStyle     =   0  'None
  6.    Caption         =   "iPage"
  7.    ClientHeight    =   3780
  8.    ClientLeft      =   0
  9.    ClientTop       =   0
  10.    ClientWidth     =   5550
  11.    LinkTopic       =   "Form2"
  12.    Picture         =   "Form2.frx":0000
  13.    ScaleHeight     =   3780
  14.    ScaleWidth      =   5550
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.TextBox Text1 
  17.       Height          =   285
  18.       Left            =   240
  19.       TabIndex        =   6
  20.       Top             =   3120
  21.       Visible         =   0   'False
  22.       Width           =   4335
  23.    End
  24.    Begin VB.PictureBox Picture1 
  25.       BackColor       =   &H00FFFFFF&
  26.       Height          =   2175
  27.       Left            =   240
  28.       ScaleHeight     =   2115
  29.       ScaleWidth      =   4875
  30.       TabIndex        =   3
  31.       Top             =   480
  32.       Width           =   4935
  33.       Begin VB.VScrollBar VScroll1 
  34.          Height          =   2120
  35.          LargeChange     =   8
  36.          Left            =   4620
  37.          TabIndex        =   5
  38.          TabStop         =   0   'False
  39.          Top             =   0
  40.          Width           =   255
  41.       End
  42.       Begin VB.PictureBox Picture2 
  43.          Appearance      =   0  'Flat
  44.          AutoRedraw      =   -1  'True
  45.          BackColor       =   &H80000005&
  46.          BorderStyle     =   0  'None
  47.          BeginProperty Font 
  48.             Name            =   "Arial"
  49.             Size            =   9
  50.             Charset         =   0
  51.             Weight          =   400
  52.             Underline       =   0   'False
  53.             Italic          =   0   'False
  54.             Strikethrough   =   0   'False
  55.          EndProperty
  56.          ForeColor       =   &H80000008&
  57.          Height          =   2.45745e5
  58.          Left            =   60
  59.          ScaleHeight     =   2.45745e5
  60.          ScaleWidth      =   4995
  61.          TabIndex        =   4
  62.          Top             =   0
  63.          Width           =   5000
  64.          Begin VB.Label Label3 
  65.             Caption         =   "yes"
  66.             Height          =   255
  67.             Left            =   0
  68.             TabIndex        =   12
  69.             Top             =   1800
  70.             Visible         =   0   'False
  71.             Width           =   15
  72.          End
  73.          Begin VB.Label lblUnder 
  74.             Caption         =   "False"
  75.             Height          =   255
  76.             Left            =   0
  77.             TabIndex        =   11
  78.             Top             =   1800
  79.             Visible         =   0   'False
  80.             Width           =   15
  81.          End
  82.          Begin VB.Label lblItalic 
  83.             Caption         =   "False"
  84.             Height          =   255
  85.             Left            =   0
  86.             TabIndex        =   10
  87.             Top             =   1800
  88.             Visible         =   0   'False
  89.             Width           =   15
  90.          End
  91.          Begin VB.Label lblBold 
  92.             Caption         =   "False"
  93.             Height          =   255
  94.             Left            =   0
  95.             TabIndex        =   9
  96.             Top             =   1800
  97.             Visible         =   0   'False
  98.             Width           =   15
  99.          End
  100.          Begin VB.Label Label2 
  101.             Caption         =   "0"
  102.             Height          =   255
  103.             Left            =   -120
  104.             TabIndex        =   8
  105.             Top             =   1800
  106.             Visible         =   0   'False
  107.             Width           =   135
  108.          End
  109.          Begin VB.Label Label1 
  110.             Caption         =   "Label1"
  111.             Height          =   255
  112.             Left            =   0
  113.             TabIndex        =   7
  114.             Top             =   1800
  115.             Visible         =   0   'False
  116.             Width           =   15
  117.          End
  118.       End
  119.    End
  120.    Begin MSWinsockLib.Winsock wData 
  121.       Left            =   840
  122.       Top             =   3360
  123.       _ExtentX        =   741
  124.       _ExtentY        =   741
  125.       _Version        =   393216
  126.    End
  127.    Begin VB.CommandButton Command1 
  128.       Appearance      =   0  'Flat
  129.       Caption         =   "Send"
  130.       Enabled         =   0   'False
  131.       Height          =   255
  132.       Left            =   4680
  133.       TabIndex        =   2
  134.       Top             =   3160
  135.       Width           =   615
  136.    End
  137.    Begin VB.TextBox Text2 
  138.       Height          =   285
  139.       Left            =   240
  140.       TabIndex        =   1
  141.       Top             =   3120
  142.       Width           =   4335
  143.    End
  144.    Begin MSComctlLib.ImageList ImageList1 
  145.       Left            =   1320
  146.       Top             =   3360
  147.       _ExtentX        =   1005
  148.       _ExtentY        =   1005
  149.       BackColor       =   -2147483643
  150.       ImageWidth      =   16
  151.       ImageHeight     =   16
  152.       MaskColor       =   12632256
  153.       _Version        =   393216
  154.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  155.          NumListImages   =   11
  156.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  157.             Picture         =   "Form2.frx":1A94
  158.             Key             =   ""
  159.          EndProperty
  160.          BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  161.             Picture         =   "Form2.frx":1C70
  162.             Key             =   ""
  163.          EndProperty
  164.          BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  165.             Picture         =   "Form2.frx":1E4C
  166.             Key             =   ""
  167.          EndProperty
  168.          BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  169.             Picture         =   "Form2.frx":2028
  170.             Key             =   ""
  171.          EndProperty
  172.          BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  173.             Picture         =   "Form2.frx":2204
  174.             Key             =   ""
  175.          EndProperty
  176.          BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  177.             Picture         =   "Form2.frx":23E0
  178.             Key             =   ""
  179.          EndProperty
  180.          BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  181.             Picture         =   "Form2.frx":25BC
  182.             Key             =   ""
  183.          EndProperty
  184.          BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  185.             Picture         =   "Form2.frx":2798
  186.             Key             =   ""
  187.          EndProperty
  188.          BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  189.             Picture         =   "Form2.frx":2974
  190.             Key             =   ""
  191.          EndProperty
  192.          BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  193.             Picture         =   "Form2.frx":2B50
  194.             Key             =   ""
  195.          EndProperty
  196.          BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  197.             Picture         =   "Form2.frx":2D2C
  198.             Key             =   ""
  199.          EndProperty
  200.       EndProperty
  201.    End
  202.    Begin MSComctlLib.Toolbar Toolbar1 
  203.       Height          =   330
  204.       Left            =   240
  205.       TabIndex        =   0
  206.       Top             =   2760
  207.       Width           =   4335
  208.       _ExtentX        =   7646
  209.       _ExtentY        =   582
  210.       ButtonWidth     =   609
  211.       ButtonHeight    =   582
  212.       AllowCustomize  =   0   'False
  213.       Appearance      =   1
  214.       Style           =   1
  215.       ImageList       =   "ImageList1"
  216.       _Version        =   393216
  217.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  218.          NumButtons      =   15
  219.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  220.             Style           =   4
  221.          EndProperty
  222.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  223.             Key             =   "bold"
  224.             Object.ToolTipText     =   "Bold"
  225.             ImageIndex      =   1
  226.             Style           =   1
  227.          EndProperty
  228.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  229.             Key             =   "italic"
  230.             Object.ToolTipText     =   "Italic"
  231.             ImageIndex      =   2
  232.             Style           =   1
  233.          EndProperty
  234.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  235.             Key             =   "under"
  236.             Object.ToolTipText     =   "Underline"
  237.             ImageIndex      =   3
  238.             Style           =   1
  239.          EndProperty
  240.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  241.             Style           =   4
  242.          EndProperty
  243.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  244.             Key             =   "elite"
  245.             Object.ToolTipText     =   "Elited Text"
  246.             ImageIndex      =   4
  247.          EndProperty
  248.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  249.             Key             =   "hacker"
  250.             Object.ToolTipText     =   "Hacker Coded"
  251.             ImageIndex      =   5
  252.          EndProperty
  253.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  254.             Key             =   "back"
  255.             Object.ToolTipText     =   "Backwards Text"
  256.             ImageIndex      =   6
  257.          EndProperty
  258.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  259.             Key             =   "echo"
  260.             Object.ToolTipText     =   "Echoed Text"
  261.             ImageIndex      =   7
  262.          EndProperty
  263.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  264.             Key             =   "alter"
  265.             Object.ToolTipText     =   "Alternative Caps"
  266.             ImageIndex      =   8
  267.          EndProperty
  268.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  269.             Style           =   4
  270.          EndProperty
  271.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  272.             Key             =   "opt"
  273.             Object.ToolTipText     =   "Show Options"
  274.             ImageIndex      =   9
  275.          EndProperty
  276.          BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  277.             Key             =   "conn"
  278.             Object.ToolTipText     =   "Start Connection"
  279.             ImageIndex      =   10
  280.          EndProperty
  281.          BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  282.             Key             =   "dconn"
  283.             Object.ToolTipText     =   "Disconnect"
  284.             ImageIndex      =   11
  285.          EndProperty
  286.          BeginProperty Button15 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  287.             Style           =   3
  288.          EndProperty
  289.       EndProperty
  290.    End
  291.    Begin VB.Image Image4 
  292.       Height          =   375
  293.       Left            =   4800
  294.       Top             =   0
  295.       Width           =   255
  296.    End
  297.    Begin VB.Image Image3 
  298.       Height          =   375
  299.       Left            =   5040
  300.       Top             =   0
  301.       Width           =   255
  302.    End
  303.    Begin VB.Image Image2 
  304.       Height          =   375
  305.       Left            =   120
  306.       Top             =   0
  307.       Width           =   255
  308.    End
  309.    Begin VB.Image Image1 
  310.       Height          =   375
  311.       Left            =   360
  312.       Top             =   0
  313.       Width           =   4455
  314.    End
  315. Attribute VB_Name = "Form21"
  316. Attribute VB_GlobalNameSpace = False
  317. Attribute VB_Creatable = False
  318. Attribute VB_PredeclaredId = True
  319. Attribute VB_Exposed = False
  320. ' Declarations for the Variables
  321. Dim bolds As String
  322. Dim italics As String
  323. Dim unders As String
  324. Dim R1 As Integer
  325. Dim G1 As Integer
  326. Dim B1 As Integer
  327. Dim R2 As Integer
  328. Dim G2 As Integer
  329. Dim B2 As Integer
  330. Dim sr1 As Integer
  331. Dim sg1 As Integer
  332. Dim sb1 As Integer
  333. Dim sr2 As Integer
  334. Dim sg2 As Integer
  335. Dim sb2 As Integer
  336. Dim messa As String
  337. Dim nickn As String
  338. '***************************'
  339. Private Sub Command1_Click()
  340. On Error Resume Next
  341. ' Dont Display the Message if the message is empty
  342. If Text2.Text = "" Then
  343. Exit Sub
  344. End If
  345. ' Add an empty Character at the end of every message
  346. Text2.Text = Text2.Text & " "
  347. ' Change the label caption to Yes so to display a nick name
  348. Label1.Caption = "Yes"
  349. ' Filter The Language you can add more filtering if you want to
  350. Text2.Text = ReplaceChars(Text2.Text, "ass", "***")
  351. Text2.Text = ReplaceChars(Text2.Text, "fuck", "****")
  352. Text2.Text = ReplaceChars(Text2.Text, "tits", "****")
  353. Text2.Text = ReplaceChars(Text2.Text, "cock", "****")
  354. ' Call the Send Data Procedure
  355. Call senddata
  356. ' Call The Command2_click Procedure
  357. Call Command2_Click
  358. End Sub
  359. '***************************'
  360. Private Sub Command2_Click()
  361. ' Check to see if label1 Caption is Yes if true then display the nickname
  362. If Label1.Caption = "Yes" Then
  363. Picture2.FontItalic = False
  364. Picture2.FontUnderline = False
  365. Picture2.ForeColor = vbBlue
  366. Picture2.FontBold = True
  367. Picture2.Print Form1.Text7.Text & "> ";
  368. Label1.Caption = "dsd"
  369. Picture2.FontBold = False
  370. End If
  371. ' Fade the Text in the picturebox
  372. Fa Form1.Text3.Text, Form1.Text2.Text, Form1.Text1.Text, Form1.Text6.Text, Form1.Text5.Text, Form1.Text4.Text, Text2.Text
  373. ' Add the Times the Send Button Is Clicked
  374. Label2.Caption = Add(Label2.Caption, 1)
  375. ' If the send button is clicked 2 times then scroll picture box
  376. If Label2.Caption = 2 Then
  377. VScroll1.Value = VScroll1.Value + 180
  378. Label2.Caption = 0
  379. End If
  380. ' Empty Message when fading completes
  381. Text2.Text = ""
  382. End Sub
  383. '***************************'
  384. Private Sub Form_Load()
  385. ' Make the form transparent
  386. SetRegion
  387. ' Set the protocol
  388. wData.Protocol = sckUDPProtocol
  389. End Sub
  390. '***************************'
  391. Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  392. ' Drag the form without title bar
  393. ReleaseCapture
  394. SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
  395. End Sub
  396. '***************************'
  397. Private Sub Image2_Click()
  398. ' End the Program if the user clicks the end button
  399. End Sub
  400. '***************************'
  401. Private Sub Image3_Click()
  402. ' Minimize the program if user clicks the minimize button
  403. Me.WindowState = 1
  404. End Sub
  405. '***************************'
  406. Private Sub Image4_Click()
  407. If Me.Width = 5550 Then
  408. Me.Width = 5370
  409. Me.Height = 360
  410. ElseIf Me.Width = 5370 Then
  411. Me.Width = 5550
  412. Me.Height = 3780
  413. End If
  414. End Sub
  415. '***************************'
  416. Private Sub Text2_Change()
  417. Command1.Default = True
  418. End Sub
  419. '***************************'
  420. Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
  421. Select Case Button.Key
  422. Case "bold"
  423. ' Make the label caption to True if it is false and vice versa
  424. If lblBold.Caption = "False" Then
  425. lblBold.Caption = "True"
  426. lblBold.Caption = "False"
  427. End If
  428. Case "italic"
  429. ' Make the label caption to True if it is false and vice versa
  430. If lblItalic.Caption = "False" Then
  431. lblItalic.Caption = "True"
  432. lblItalic.Caption = "False"
  433. End If
  434. Case "under"
  435. ' Make the label caption to True if False and vice versa
  436. If lblUnder.Caption = "False" Then
  437. lblUnder.Caption = "True"
  438. lblUnder.Caption = "False"
  439. End If
  440. Case "elite"
  441. ' Make text Elited
  442. Text2.Text = fn138((Text2.Text))
  443. Case "hacker"
  444. ' Make Hacker Text
  445. Text2.Text = fn170((Text2.Text))
  446. Case "back"
  447. ' Reverse Text
  448. Text2.Text = fn100((Text2.Text))
  449. Case "alter"
  450. ' Make Alternative Caps
  451. Text2.Text = fnC8((Text2.Text))
  452. Case "echo"
  453. ' Echoed Text
  454. Text2.Text = EchoText(Text2.Text, False)
  455. Case "opt"
  456. ' Display Options
  457. Form1.Show 1
  458. Case "conn"
  459. ' Connect To Computer
  460. Call connect
  461. Case "dconn"
  462. ' Disconnect from remote computer
  463. Call dconnect
  464. End Select
  465. End Sub
  466. '***************************'
  467. Function Fa(R1%, G1%, B1%, R2%, G2%, B2%, TheText$, Optional nickna$)
  468. ' This function will fade the text and display it in the picture box
  469. On Error GoTo error
  470. ' Make sure the message storing text box is empty
  471. Text1.Text = ""
  472. ' Display the remote nickname if wanted
  473. If nickna = "" Then
  474. Picture2.ForeColor = vbRed
  475. Picture2.FontUnderline = False
  476. Picture2.FontItalic = False
  477. Picture2.FontBold = True
  478. Picture2.Print nickna & "> ";
  479. Label1.Caption = "dsd"
  480. Picture2.FontBold = False
  481. End If
  482. textlen$ = Len(TheText)
  483. For i = 1 To textlen$
  484. textdone$ = Left(TheText, i)
  485. lastchr$ = Right(textdone$, 1)
  486. colorX = RGB(((B2 - B1) / textlen$ * i) + B1, ((G2 - G1) / textlen$ * i) + G1, ((R2 - R1) / textlen$ * i) + R1)
  487. ' Store the no. of characters
  488. Text1.Text = Text1.Text & lastchr$
  489. ' Change the forecolor
  490. Picture2.ForeColor = colorX
  491. ' Make text bold if required
  492. If lblBold.Caption = "True" Then
  493. Picture2.FontBold = True
  494. ElseIf lblBold.Caption = "False" Then
  495. Picture2.FontBold = False
  496. End If
  497. ' Make text Italic If Required
  498. If lblItalic.Caption = "True" Then
  499. Picture2.FontItalic = True
  500. ElseIf lblItalic.Caption = "False" Then
  501. Picture2.FontItalic = False
  502. End If
  503. ' Make Text Underlined if required
  504. If lblUnder.Caption = "True" Then
  505. Picture2.FontUnderline = True
  506. ElseIf lblUnder.Caption = "False" Then
  507. Picture2.FontUnderline = False
  508. End If
  509. ' If the characters reaches 40 mark then start with a new line
  510. If Len(Text1.Text) > 40 Then
  511. ' Empty Storing text box
  512. Text1.Text = ""
  513. Picture2.Print lastchr$
  514. GoTo jo
  515. End If
  516. Dim gh As Long
  517. If gh = 2 Then
  518. gh = 0
  519. Picture2.Print lastchr$
  520. Text1.Text = ""
  521. Exit Function
  522. End If
  523. If Len(Text1.Text) = Len(Text2.Text) - 1 Then
  524. gh = Add(gh, 1)
  525. GoTo fig
  526. Picture2.Print lastchr$;
  527. End If
  528. Next i
  529. Text1.Text = ""
  530. Picture2.Print " "
  531. Exit Function
  532. error:
  533. End Function
  534. '***************************'
  535. Private Sub VScroll1_Change()
  536. ' Scroll the picture box as required
  537. If VScroll1.Value >= 32750 Then
  538. Picture2.Cls
  539. VScroll1.Value = 0
  540. End If
  541. Picture2.Top = "-" & VScroll1.Value
  542. End Sub
  543. '***************************'
  544. Function Add(num1 As Long, num2 As Long) As Long
  545. ' Function to add two given numbers
  546.     On Error Resume Next
  547.     Add = Val(num1) + Val(num2)
  548. End Function
  549. '***************************'
  550. Function Subtract(num1 As Long, num2 As Long) As Long
  551. ' Function to subtract two numbers
  552.     On Error Resume Next
  553. Subtract = Val(num1) - Val(num2)
  554. End Function
  555. '***************************'
  556. Public Sub connect()
  557. On Error Resume Next
  558. ' Close current connection if active
  559. wData.Close
  560. ' Specify Details of the Remote Computer
  561. ' *****************'
  562. ' Set the remote ip
  563. wData.RemoteHost = Form1.Text8.Text
  564. ' Set the local port
  565. wData.LocalPort = Form1.Text9.Text
  566. ' Set the remote port
  567. wData.RemotePort = Form1.Text9.Text
  568. wData.Bind
  569. ' Display Message Window
  570. message "Connecting to remote computer", "1000"
  571. ' Enable the Command Button
  572. Command1.Enabled = True
  573. If Err Then MsgBox Err.Description
  574. End Sub
  575. '***************************'
  576. Private Sub wData_Close()
  577. ' On Closing Display the Closing Message
  578. message "Closing Current Connection", "1000"
  579. End Sub
  580. '***************************'
  581. Private Sub wData_Connect()
  582. ' On Connection Display the connected message
  583. message "Connected.", "700"
  584. End Sub
  585. '***************************'
  586. Private Sub wData_ConnectionRequest(ByVal requestID As Long)
  587.     ' Close Current Connection
  588.     wData.Close
  589.     wData.Accept requestID
  590.     ' Display Message
  591.     message "Connection accepted", "600"
  592. End Sub
  593. '***************************'
  594. Private Sub wData_DataArrival(ByVal bytesTotal As Long)
  595. Dim ndata As String
  596. On Error Resume Next
  597. 'Get the data being sent to us:
  598. wData.GetData ndata
  599. ' Parse all the data
  600. bolds = GetInBetween(ndata, "[b]", "[/b]")
  601. italics = GetInBetween(ndata, "[i]", "[/i]")
  602. unders = GetInBetween(ndata, "[u]", "[/u]")
  603. R1 = GetInBetween1(ndata, "[r1]", "[/r1]")
  604. G1 = GetInBetween1(ndata, "[g1]", "[/g1]")
  605. B1 = GetInBetween1(ndata, "[b1]", "[/b1]")
  606. R2 = GetInBetween1(ndata, "[r2]", "[/r2]")
  607. G2 = GetInBetween1(ndata, "[g2]", "[/g2]")
  608. B2 = GetInBetween1(ndata, "[b2]", "[/b2]")
  609. nickn = GetInBetween(ndata, "[ni]", "[/ni]")
  610. messa = GetInBetween(ndata, "[m]", "[/m]")
  611. ' Set all the data as given
  612. lblBold.Caption = bolds
  613. lblItalic.Caption = italics
  614. lblUnder.Caption = unders
  615. ' Call the fading text procedure
  616. Fa R1, G1, B1, R2, G2, B2, messa, nickn
  617. If Err Then MsgBox Err.Description
  618. End Sub
  619. '***************************'
  620. Private Sub wData_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
  621. ' On error display a message box with its description
  622. MsgBox Description
  623. End Sub
  624. '***************************'
  625. Public Function message(mess As String, interval As Integer)
  626. ' Function for displaying the message window
  627. ' ***********************'
  628. ' Set given message
  629. Form3.Label1.Caption = mess
  630. ' Set the interval
  631. Form3.Timer1.interval = interval
  632. ' Enable the timer
  633. Form3.Timer1.Enabled = True
  634. ' Show the form
  635. Form3.Show 1
  636. End Function
  637. '***************************'
  638. Public Sub dconnect()
  639. ' Dsiconnect rt = Form1.Text9.0]", "[4mer1ieomputer
  640. Call dconnect
  641. End Select
  642. wDating, ByVal HelpFile As Strine As Strine A0cN = True
  643. ' Show the form
  644. Form3.Show 1
  645. End Function
  646. '***************************'
  647. Publi_m2l HelpFile A imer1.Enabled = True
  648. ' Show the form
  649. Form3.Show 1
  650. End FunctieubliGgBntegdciorm
  651. oolean)
  652. ' On error display a message box with its description
  653. 1uestID As Long)
  654.     ' Close Currenterr(D)
  655. ' On Clos7HelpFile [/m]")
  656. cox Err.Descri
  657. End SubLabel1.Captionnt lastchr$;
  658. End If
  659. Nextc S2N7uctxt1.Text & lastchr$
  660. ' Change tn
  661. 1led 8ction
  662. Y b1]", ;eagestIj
  663. ' Disconnect from remote computer
  664. Call dconnect
  665. End Select
  666. End Sub
  667. '******************* c S2N7Im.4ct
  668. E4n$ = 13I ByVal HelpFile As String, ByVal HelpFiO3nnect()
  669. '***=al H.mote c6unction
  670. '***=al H.mote c6unction
  671. n'***=al H.mote c6unction
  672. n'***=al H.mote c6unction
  673. n'***=al H.mote c6unction
  674. n'***=al H.mote c6unction
  675. n'***=al H.mote c6unc2S3nnfr4H.mote c6u'0Index      =   11
  676. D-2=F7d;n
  677. MeRt Enable the timer
  678. Form3.Tim.ee cee   =f
  679. End Sub
  680. '******1
  681.