home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD14528242001.psc / Client / Form1.frm (.txt) < prev   
Encoding:
Visual Basic Form  |  2000-08-17  |  80.2 KB  |  2,106 lines

  1. VERSION 5.00
  2. Object = "{33101C00-75C3-11CF-A8A0-444553540000}#1.0#0"; "CSWSK32.OCX"
  3. Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
  4. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  5. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  6. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  7. Object = "{6685E735-3BF6-11D1-A345-444553540000}#1.1#0"; "GRADIENTTITLE.OCX"
  8. Begin VB.Form Form1 
  9.    Caption         =   "IntraShare"
  10.    ClientHeight    =   8100
  11.    ClientLeft      =   165
  12.    ClientTop       =   450
  13.    ClientWidth     =   10050
  14.    ClipControls    =   0   'False
  15.    Icon            =   "Form1.frx":0000
  16.    LinkTopic       =   "Form1"
  17.    ScaleHeight     =   8100
  18.    ScaleWidth      =   10050
  19.    StartUpPosition =   2  'CenterScreen
  20.    Begin SocketWrenchCtrl.Socket Socket1 
  21.       Left            =   0
  22.       Top             =   0
  23.       _Version        =   65536
  24.       _ExtentX        =   741
  25.       _ExtentY        =   741
  26.       _StockProps     =   0
  27.       AutoResolve     =   -1  'True
  28.       Backlog         =   5
  29.       Binary          =   -1  'True
  30.       Blocking        =   -1  'True
  31.       Broadcast       =   0   'False
  32.       BufferSize      =   0
  33.       HostAddress     =   ""
  34.       HostFile        =   ""
  35.       HostName        =   "localhost"
  36.       InLine          =   0   'False
  37.       Interval        =   0
  38.       KeepAlive       =   0   'False
  39.       Library         =   ""
  40.       Linger          =   0
  41.       LocalPort       =   2222
  42.       LocalService    =   ""
  43.       Protocol        =   0
  44.       RemotePort      =   2223
  45.       RemoteService   =   ""
  46.       ReuseAddress    =   0   'False
  47.       Route           =   -1  'True
  48.       Timeout         =   0
  49.       Type            =   1
  50.       Urgent          =   0   'False
  51.    End
  52.    Begin MSComctlLib.StatusBar Status 
  53.       Align           =   2  'Align Bottom
  54.       Height          =   255
  55.       Left            =   0
  56.       TabIndex        =   25
  57.       Top             =   7845
  58.       Width           =   10050
  59.       _ExtentX        =   17727
  60.       _ExtentY        =   450
  61.       _Version        =   393216
  62.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  63.          NumPanels       =   2
  64.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  65.             Alignment       =   1
  66.             Bevel           =   2
  67.             Object.Width           =   450
  68.             MinWidth        =   450
  69.             Picture         =   "Form1.frx":0442
  70.             Object.ToolTipText     =   "Not Connected"
  71.          EndProperty
  72.          BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  73.             AutoSize        =   1
  74.             Object.Width           =   16748
  75.             Text            =   "Not Connected"
  76.             TextSave        =   "Not Connected"
  77.          EndProperty
  78.       EndProperty
  79.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  80.          Name            =   "Comic Sans MS"
  81.          Size            =   8.25
  82.          Charset         =   0
  83.          Weight          =   400
  84.          Underline       =   0   'False
  85.          Italic          =   0   'False
  86.          Strikethrough   =   0   'False
  87.       EndProperty
  88.    End
  89.    Begin GradientTitle.graTitle graTitle1 
  90.       Left            =   120
  91.       Top             =   960
  92.       _ExtentX        =   847
  93.       _ExtentY        =   847
  94.       GradEndColor    =   0
  95.       InGradStartColor=   0
  96.       InGradEndColor  =   0
  97.       SysColor        =   0   'False
  98.    End
  99.    Begin TabDlg.SSTab SSTab1 
  100.       Height          =   7695
  101.       Left            =   0
  102.       TabIndex        =   0
  103.       Top             =   0
  104.       Width           =   9855
  105.       _ExtentX        =   17383
  106.       _ExtentY        =   13573
  107.       _Version        =   393216
  108.       Tabs            =   4
  109.       Tab             =   2
  110.       TabsPerRow      =   4
  111.       TabHeight       =   520
  112.       TabCaption(0)   =   "Chat"
  113.       TabPicture(0)   =   "Form1.frx":0562
  114.       Tab(0).ControlEnabled=   0   'False
  115.       Tab(0).Control(0)=   "Frame1"
  116.       Tab(0).Control(1)=   "RichTextBox1"
  117.       Tab(0).Control(2)=   "Text1"
  118.       Tab(0).Control(3)=   "ThePPLBox"
  119.       Tab(0).Control(4)=   "Flags"
  120.       Tab(0).Control(5)=   "CD1"
  121.       Tab(0).Control(6)=   "Command1"
  122.       Tab(0).Control(7)=   "Channel"
  123.       Tab(0).Control(8)=   "Command6"
  124.       Tab(0).ControlCount=   9
  125.       TabCaption(1)   =   "Search"
  126.       TabPicture(1)   =   "Form1.frx":057E
  127.       Tab(1).ControlEnabled=   0   'False
  128.       Tab(1).Control(0)=   "Search"
  129.       Tab(1).Control(1)=   "Command7"
  130.       Tab(1).Control(2)=   "SearchResults"
  131.       Tab(1).Control(3)=   "IconHold"
  132.       Tab(1).Control(4)=   "IconHoldLarge"
  133.       Tab(1).Control(5)=   "SearchBy"
  134.       Tab(1).ControlCount=   6
  135.       TabCaption(2)   =   "Shared Files"
  136.       TabPicture(2)   =   "Form1.frx":059A
  137.       Tab(2).ControlEnabled=   -1  'True
  138.       Tab(2).Control(0)=   "Label1"
  139.       Tab(2).Control(0).Enabled=   0   'False
  140.       Tab(2).Control(1)=   "SharedFilesLabel"
  141.       Tab(2).Control(1).Enabled=   0   'False
  142.       Tab(2).Control(2)=   "Command10"
  143.       Tab(2).Control(2).Enabled=   0   'False
  144.       Tab(2).Control(3)=   "Command9"
  145.       Tab(2).Control(3).Enabled=   0   'False
  146.       Tab(2).Control(4)=   "Drive1"
  147.       Tab(2).Control(4).Enabled=   0   'False
  148.       Tab(2).Control(5)=   "SharedFiles"
  149.       Tab(2).Control(5).Enabled=   0   'False
  150.       Tab(2).Control(6)=   "SharedDirectories"
  151.       Tab(2).Control(6).Enabled=   0   'False
  152.       Tab(2).Control(7)=   "DirectoryList"
  153.       Tab(2).Control(7).Enabled=   0   'False
  154.       Tab(2).Control(8)=   "LocalFiles"
  155.       Tab(2).Control(8).Enabled=   0   'False
  156.       Tab(2).Control(9)=   "ShareProgress"
  157.       Tab(2).Control(9).Enabled=   0   'False
  158.       Tab(2).Control(10)=   "SharedFilesNumber"
  159.       Tab(2).Control(10).Enabled=   0   'False
  160.       Tab(2).Control(11)=   "Timer1"
  161.       Tab(2).Control(11).Enabled=   0   'False
  162.       Tab(2).ControlCount=   12
  163.       TabCaption(3)   =   "Current Downloads"
  164.       TabPicture(3)   =   "Form1.frx":05B6
  165.       Tab(3).ControlEnabled=   0   'False
  166.       Tab(3).Control(0)=   "SocketIn(0)"
  167.       Tab(3).Control(1)=   "Sender(0)"
  168.       Tab(3).Control(2)=   "Timer2"
  169.       Tab(3).Control(3)=   "DLLocation"
  170.       Tab(3).Control(4)=   "DLBoxes"
  171.       Tab(3).Control(5)=   "Downloads"
  172.       Tab(3).ControlCount=   6
  173.       Begin SocketWrenchCtrl.Socket Sender 
  174.          Index           =   0
  175.          Left            =   -74040
  176.          Top             =   0
  177.          _Version        =   65536
  178.          _ExtentX        =   741
  179.          _ExtentY        =   741
  180.          _StockProps     =   0
  181.          AutoResolve     =   -1  'True
  182.          Backlog         =   5
  183.          Binary          =   -1  'True
  184.          Blocking        =   -1  'True
  185.          Broadcast       =   0   'False
  186.          BufferSize      =   0
  187.          HostAddress     =   ""
  188.          HostFile        =   ""
  189.          HostName        =   ""
  190.          InLine          =   0   'False
  191.          Interval        =   0
  192.          KeepAlive       =   0   'False
  193.          Library         =   ""
  194.          Linger          =   0
  195.          LocalPort       =   4564
  196.          LocalService    =   ""
  197.          Protocol        =   0
  198.          RemotePort      =   4563
  199.          RemoteService   =   ""
  200.          ReuseAddress    =   0   'False
  201.          Route           =   -1  'True
  202.          Timeout         =   0
  203.          Type            =   1
  204.          Urgent          =   0   'False
  205.       End
  206.       Begin SocketWrenchCtrl.Socket SocketIn 
  207.          Index           =   0
  208.          Left            =   -74520
  209.          Top             =   0
  210.          _Version        =   65536
  211.          _ExtentX        =   741
  212.          _ExtentY        =   741
  213.          _StockProps     =   0
  214.          AutoResolve     =   -1  'True
  215.          Backlog         =   5
  216.          Binary          =   -1  'True
  217.          Blocking        =   -1  'True
  218.          Broadcast       =   0   'False
  219.          BufferSize      =   0
  220.          HostAddress     =   ""
  221.          HostFile        =   ""
  222.          HostName        =   ""
  223.          InLine          =   0   'False
  224.          Interval        =   0
  225.          KeepAlive       =   0   'False
  226.          Library         =   ""
  227.          Linger          =   0
  228.          LocalPort       =   4563
  229.          LocalService    =   ""
  230.          Protocol        =   0
  231.          RemotePort      =   4564
  232.          RemoteService   =   ""
  233.          ReuseAddress    =   0   'False
  234.          Route           =   -1  'True
  235.          Timeout         =   0
  236.          Type            =   1
  237.          Urgent          =   0   'False
  238.       End
  239.       Begin VB.Timer Timer2 
  240.          Left            =   -74880
  241.          Top             =   1560
  242.       End
  243.       Begin VB.TextBox DLLocation 
  244.          Height          =   285
  245.          Left            =   -67440
  246.          TabIndex        =   24
  247.          Text            =   "C:"
  248.          Top             =   480
  249.          Visible         =   0   'False
  250.          Width           =   2175
  251.       End
  252.       Begin VB.Timer Timer1 
  253.          Interval        =   1
  254.          Left            =   0
  255.          Top             =   1080
  256.       End
  257.       Begin VB.TextBox DLBoxes 
  258.          Height          =   375
  259.          Left            =   -74880
  260.          TabIndex        =   23
  261.          Text            =   "9"
  262.          Top             =   480
  263.          Visible         =   0   'False
  264.          Width           =   375
  265.       End
  266.       Begin VB.TextBox SharedFilesNumber 
  267.          Height          =   285
  268.          Left            =   480
  269.          TabIndex        =   21
  270.          Text            =   "0"
  271.          Top             =   1320
  272.          Visible         =   0   'False
  273.          Width           =   270
  274.       End
  275.       Begin MSComctlLib.ProgressBar ShareProgress 
  276.          Height          =   255
  277.          Left            =   120
  278.          TabIndex        =   20
  279.          Top             =   7380
  280.          Width           =   9615
  281.          _ExtentX        =   16960
  282.          _ExtentY        =   450
  283.          _Version        =   393216
  284.          Appearance      =   1
  285.       End
  286.       Begin VB.FileListBox LocalFiles 
  287.          Height          =   285
  288.          Left            =   240
  289.          TabIndex        =   19
  290.          Top             =   1320
  291.          Visible         =   0   'False
  292.          Width           =   255
  293.       End
  294.       Begin VB.DirListBox DirectoryList 
  295.          Height          =   3015
  296.          Left            =   120
  297.          TabIndex        =   15
  298.          Top             =   1170
  299.          Width           =   3915
  300.       End
  301.       Begin VB.ListBox SharedDirectories 
  302.          Height          =   3570
  303.          ItemData        =   "Form1.frx":05D2
  304.          Left            =   4080
  305.          List            =   "Form1.frx":05D4
  306.          TabIndex        =   12
  307.          Top             =   840
  308.          Width           =   5655
  309.       End
  310.       Begin VB.ComboBox SearchBy 
  311.          Height          =   315
  312.          ItemData        =   "Form1.frx":05D6
  313.          Left            =   -66840
  314.          List            =   "Form1.frx":05EC
  315.          Style           =   2  'Dropdown List
  316.          TabIndex        =   10
  317.          Top             =   480
  318.          Width           =   1575
  319.       End
  320.       Begin MSComctlLib.ImageList IconHoldLarge 
  321.          Left            =   -71880
  322.          Top             =   4380
  323.          _ExtentX        =   1005
  324.          _ExtentY        =   1005
  325.          BackColor       =   -2147483643
  326.          ImageWidth      =   32
  327.          ImageHeight     =   32
  328.          MaskColor       =   12632256
  329.          _Version        =   393216
  330.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  331.             NumListImages   =   29
  332.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  333.                Picture         =   "Form1.frx":0649
  334.                Key             =   "Unknown"
  335.             EndProperty
  336.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  337.                Picture         =   "Form1.frx":0965
  338.                Key             =   "bas"
  339.             EndProperty
  340.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  341.                Picture         =   "Form1.frx":0C81
  342.                Key             =   "bmp"
  343.             EndProperty
  344.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  345.                Picture         =   "Form1.frx":0F9D
  346.                Key             =   "cgi"
  347.             EndProperty
  348.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  349.                Picture         =   "Form1.frx":12B9
  350.                Key             =   "cls"
  351.             EndProperty
  352.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  353.                Picture         =   "Form1.frx":15D5
  354.                Key             =   "exe"
  355.             EndProperty
  356.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  357.                Picture         =   "Form1.frx":18F1
  358.                Key             =   "dat"
  359.             EndProperty
  360.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  361.                Picture         =   "Form1.frx":1C0D
  362.                Key             =   "frm"
  363.             EndProperty
  364.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  365.                Picture         =   "Form1.frx":1F29
  366.                Key             =   "fla"
  367.             EndProperty
  368.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  369.                Picture         =   "Form1.frx":2245
  370.                Key             =   "gif"
  371.             EndProperty
  372.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  373.                Picture         =   "Form1.frx":2561
  374.                Key             =   "htm"
  375.             EndProperty
  376.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  377.                Picture         =   "Form1.frx":287D
  378.                Key             =   "ini"
  379.             EndProperty
  380.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  381.                Picture         =   "Form1.frx":2B99
  382.                Key             =   "mdb"
  383.             EndProperty
  384.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  385.                Picture         =   "Form1.frx":2EB5
  386.                Key             =   "pif"
  387.             EndProperty
  388.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  389.                Picture         =   "Form1.frx":31D1
  390.                Key             =   "prf"
  391.             EndProperty
  392.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  393.                Picture         =   "Form1.frx":34ED
  394.                Key             =   "rar"
  395.             EndProperty
  396.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  397.                Picture         =   "Form1.frx":3809
  398.                Key             =   "doc"
  399.             EndProperty
  400.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  401.                Picture         =   "Form1.frx":3B25
  402.                Key             =   "scr"
  403.             EndProperty
  404.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  405.                Picture         =   "Form1.frx":3E41
  406.                Key             =   "swf"
  407.             EndProperty
  408.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  409.                Picture         =   "Form1.frx":415D
  410.                Key             =   "sys"
  411.             EndProperty
  412.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  413.                Picture         =   "Form1.frx":4479
  414.                Key             =   "txt"
  415.             EndProperty
  416.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  417.                Picture         =   "Form1.frx":4795
  418.                Key             =   "vbp"
  419.             EndProperty
  420.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  421.                Picture         =   "Form1.frx":4AB1
  422.                Key             =   "wav"
  423.             EndProperty
  424.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  425.                Picture         =   "Form1.frx":4DCD
  426.                Key             =   "bat"
  427.             EndProperty
  428.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  429.                Picture         =   "Form1.frx":50E9
  430.                Key             =   "hlp"
  431.             EndProperty
  432.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  433.                Picture         =   "Form1.frx":5405
  434.                Key             =   "jbf"
  435.             EndProperty
  436.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  437.                Picture         =   "Form1.frx":5721
  438.                Key             =   "cb"
  439.             EndProperty
  440.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  441.                Picture         =   "Form1.frx":5A3D
  442.                Key             =   "xls"
  443.             EndProperty
  444.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  445.                Picture         =   "Form1.frx":5D59
  446.                Key             =   "msg"
  447.             EndProperty
  448.          EndProperty
  449.       End
  450.       Begin MSComctlLib.ImageList IconHold 
  451.          Left            =   -72720
  452.          Top             =   4380
  453.          _ExtentX        =   1005
  454.          _ExtentY        =   1005
  455.          BackColor       =   -2147483643
  456.          ImageWidth      =   16
  457.          ImageHeight     =   16
  458.          MaskColor       =   12632256
  459.          _Version        =   393216
  460.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  461.             NumListImages   =   29
  462.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  463.                Picture         =   "Form1.frx":6075
  464.                Key             =   "Unknown"
  465.             EndProperty
  466.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  467.                Picture         =   "Form1.frx":6251
  468.                Key             =   "bas"
  469.             EndProperty
  470.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  471.                Picture         =   "Form1.frx":642D
  472.                Key             =   "bmp"
  473.             EndProperty
  474.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  475.                Picture         =   "Form1.frx":6609
  476.                Key             =   "cgi"
  477.             EndProperty
  478.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  479.                Picture         =   "Form1.frx":67E5
  480.                Key             =   "cls"
  481.             EndProperty
  482.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  483.                Picture         =   "Form1.frx":69C1
  484.                Key             =   "exe"
  485.             EndProperty
  486.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  487.                Picture         =   "Form1.frx":6B9D
  488.                Key             =   "dat"
  489.             EndProperty
  490.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  491.                Picture         =   "Form1.frx":6D79
  492.                Key             =   "frm"
  493.             EndProperty
  494.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  495.                Picture         =   "Form1.frx":6F55
  496.                Key             =   "fla"
  497.             EndProperty
  498.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  499.                Picture         =   "Form1.frx":7131
  500.                Key             =   "gif"
  501.             EndProperty
  502.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  503.                Picture         =   "Form1.frx":730D
  504.                Key             =   "htm"
  505.             EndProperty
  506.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  507.                Picture         =   "Form1.frx":74E9
  508.                Key             =   "ini"
  509.             EndProperty
  510.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  511.                Picture         =   "Form1.frx":76C5
  512.                Key             =   "mdb"
  513.             EndProperty
  514.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  515.                Picture         =   "Form1.frx":78A1
  516.                Key             =   "pif"
  517.             EndProperty
  518.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  519.                Picture         =   "Form1.frx":7A7D
  520.                Key             =   "prf"
  521.             EndProperty
  522.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  523.                Picture         =   "Form1.frx":7C59
  524.                Key             =   "rar"
  525.             EndProperty
  526.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  527.                Picture         =   "Form1.frx":7E35
  528.                Key             =   "doc"
  529.             EndProperty
  530.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  531.                Picture         =   "Form1.frx":8011
  532.                Key             =   "scr"
  533.             EndProperty
  534.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  535.                Picture         =   "Form1.frx":81ED
  536.                Key             =   "swf"
  537.             EndProperty
  538.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  539.                Picture         =   "Form1.frx":83C9
  540.                Key             =   "sys"
  541.             EndProperty
  542.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  543.                Picture         =   "Form1.frx":85A5
  544.                Key             =   "txt"
  545.             EndProperty
  546.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  547.                Picture         =   "Form1.frx":8781
  548.                Key             =   "vbp"
  549.             EndProperty
  550.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  551.                Picture         =   "Form1.frx":895D
  552.                Key             =   "wav"
  553.             EndProperty
  554.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  555.                Picture         =   "Form1.frx":8B39
  556.                Key             =   "bat"
  557.             EndProperty
  558.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  559.                Picture         =   "Form1.frx":8D15
  560.                Key             =   "hlp"
  561.             EndProperty
  562.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  563.                Picture         =   "Form1.frx":8EF1
  564.                Key             =   "jbf"
  565.             EndProperty
  566.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  567.                Picture         =   "Form1.frx":90CD
  568.                Key             =   "cab"
  569.             EndProperty
  570.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  571.                Picture         =   "Form1.frx":92A9
  572.                Key             =   "xls"
  573.             EndProperty
  574.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  575.                Picture         =   "Form1.frx":9485
  576.                Key             =   "msg"
  577.             EndProperty
  578.          EndProperty
  579.       End
  580.       Begin MSComctlLib.ListView SearchResults 
  581.          Height          =   6855
  582.          Left            =   -74880
  583.          TabIndex        =   9
  584.          Top             =   780
  585.          Width           =   9615
  586.          _ExtentX        =   16960
  587.          _ExtentY        =   12091
  588.          View            =   3
  589.          Sorted          =   -1  'True
  590.          MultiSelect     =   -1  'True
  591.          LabelWrap       =   -1  'True
  592.          HideSelection   =   -1  'True
  593.          FullRowSelect   =   -1  'True
  594.          _Version        =   393217
  595.          Icons           =   "IconHoldLarge"
  596.          SmallIcons      =   "IconHold"
  597.          ForeColor       =   -2147483640
  598.          BackColor       =   -2147483643
  599.          BorderStyle     =   1
  600.          Appearance      =   1
  601.          NumItems        =   4
  602.          BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  603.             Text            =   "Filename"
  604.             Object.Width           =   2540
  605.          EndProperty
  606.          BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  607.             SubItemIndex    =   1
  608.             Text            =   "Owner"
  609.             Object.Width           =   2540
  610.          EndProperty
  611.          BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  612.             SubItemIndex    =   2
  613.             Text            =   "Size"
  614.             Object.Width           =   2540
  615.          EndProperty
  616.          BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  617.             SubItemIndex    =   3
  618.             Text            =   "Last Modified"
  619.             Object.Width           =   2540
  620.          EndProperty
  621.       End
  622.       Begin VB.CommandButton Command7 
  623.          Caption         =   "Search"
  624.          Height          =   315
  625.          Left            =   -68760
  626.          TabIndex        =   8
  627.          Top             =   480
  628.          Width           =   1935
  629.       End
  630.       Begin VB.TextBox Search 
  631.          Height          =   315
  632.          Left            =   -74880
  633.          TabIndex        =   7
  634.          Top             =   480
  635.          Width           =   6135
  636.       End
  637.       Begin VB.CommandButton Command6 
  638.          Caption         =   "Goto/Create Channel"
  639.          Height          =   315
  640.          Left            =   -67920
  641.          TabIndex        =   6
  642.          Top             =   480
  643.          Width           =   2655
  644.       End
  645.       Begin VB.ComboBox Channel 
  646.          Height          =   315
  647.          Left            =   -74880
  648.          TabIndex        =   5
  649.          Top             =   480
  650.          Width           =   6975
  651.       End
  652.       Begin VB.CommandButton Command1 
  653.          Caption         =   "Send"
  654.          Height          =   375
  655.          Left            =   -67920
  656.          TabIndex        =   4
  657.          Top             =   7260
  658.          Width           =   2655
  659.       End
  660.       Begin MSComDlg.CommonDialog CD1 
  661.          Left            =   -70680
  662.          Top             =   5220
  663.          _ExtentX        =   847
  664.          _ExtentY        =   847
  665.          _Version        =   393216
  666.       End
  667.       Begin MSComctlLib.ImageList Flags 
  668.          Left            =   -72960
  669.          Top             =   3420
  670.          _ExtentX        =   1005
  671.          _ExtentY        =   1005
  672.          BackColor       =   -2147483643
  673.          ImageWidth      =   32
  674.          ImageHeight     =   32
  675.          MaskColor       =   12632256
  676.          _Version        =   393216
  677.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  678.             NumListImages   =   26
  679.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  680.                Picture         =   "Form1.frx":9661
  681.                Key             =   "a"
  682.             EndProperty
  683.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  684.                Picture         =   "Form1.frx":9AB5
  685.                Key             =   "b"
  686.             EndProperty
  687.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  688.                Picture         =   "Form1.frx":9F09
  689.                Key             =   "c"
  690.             EndProperty
  691.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  692.                Picture         =   "Form1.frx":A35D
  693.                Key             =   "d"
  694.             EndProperty
  695.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  696.                Picture         =   "Form1.frx":A7B1
  697.                Key             =   "e"
  698.             EndProperty
  699.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  700.                Picture         =   "Form1.frx":AC05
  701.                Key             =   "f"
  702.             EndProperty
  703.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  704.                Picture         =   "Form1.frx":B059
  705.                Key             =   "g"
  706.             EndProperty
  707.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  708.                Picture         =   "Form1.frx":B4AD
  709.                Key             =   "h"
  710.             EndProperty
  711.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  712.                Picture         =   "Form1.frx":B901
  713.                Key             =   "i"
  714.             EndProperty
  715.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  716.                Picture         =   "Form1.frx":BD55
  717.                Key             =   "j"
  718.             EndProperty
  719.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  720.                Picture         =   "Form1.frx":C1A9
  721.                Key             =   "k"
  722.             EndProperty
  723.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  724.                Picture         =   "Form1.frx":C5FD
  725.                Key             =   "l"
  726.             EndProperty
  727.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  728.                Picture         =   "Form1.frx":CA51
  729.                Key             =   "m"
  730.             EndProperty
  731.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  732.                Picture         =   "Form1.frx":CEA5
  733.                Key             =   "n"
  734.             EndProperty
  735.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  736.                Picture         =   "Form1.frx":D2F9
  737.                Key             =   "o"
  738.             EndProperty
  739.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  740.                Picture         =   "Form1.frx":D74D
  741.                Key             =   "p"
  742.             EndProperty
  743.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  744.                Picture         =   "Form1.frx":DBA1
  745.                Key             =   "q"
  746.             EndProperty
  747.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  748.                Picture         =   "Form1.frx":DFF5
  749.                Key             =   "r"
  750.             EndProperty
  751.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  752.                Picture         =   "Form1.frx":E449
  753.                Key             =   "s"
  754.             EndProperty
  755.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  756.                Picture         =   "Form1.frx":E89D
  757.                Key             =   "t"
  758.             EndProperty
  759.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  760.                Picture         =   "Form1.frx":ECF1
  761.                Key             =   "u"
  762.             EndProperty
  763.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  764.                Picture         =   "Form1.frx":F145
  765.                Key             =   "v"
  766.             EndProperty
  767.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  768.                Picture         =   "Form1.frx":F599
  769.                Key             =   "w"
  770.             EndProperty
  771.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  772.                Picture         =   "Form1.frx":F9ED
  773.                Key             =   "x"
  774.             EndProperty
  775.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  776.                Picture         =   "Form1.frx":FE41
  777.                Key             =   "y"
  778.             EndProperty
  779.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  780.                Picture         =   "Form1.frx":10295
  781.                Key             =   "z"
  782.             EndProperty
  783.          EndProperty
  784.       End
  785.       Begin MSComctlLib.ListView ThePPLBox 
  786.          Height          =   6435
  787.          Left            =   -67920
  788.          TabIndex        =   1
  789.          Top             =   780
  790.          Width           =   2655
  791.          _ExtentX        =   4683
  792.          _ExtentY        =   11351
  793.          View            =   3
  794.          LabelWrap       =   -1  'True
  795.          HideSelection   =   -1  'True
  796.          HideColumnHeaders=   -1  'True
  797.          _Version        =   393217
  798.          Icons           =   "Flags"
  799.          SmallIcons      =   "Flags"
  800.          ColHdrIcons     =   "Flags"
  801.          ForeColor       =   -2147483640
  802.          BackColor       =   -2147483643
  803.          BorderStyle     =   1
  804.          Appearance      =   1
  805.          NumItems        =   2
  806.          BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  807.             Object.Width           =   1129
  808.          EndProperty
  809.          BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  810.             SubItemIndex    =   1
  811.             Object.Width           =   2540
  812.          EndProperty
  813.       End
  814.       Begin RichTextLib.RichTextBox Text1 
  815.          Height          =   375
  816.          Left            =   -74880
  817.          TabIndex        =   2
  818.          Top             =   7260
  819.          Width           =   6975
  820.          _ExtentX        =   12303
  821.          _ExtentY        =   661
  822.          _Version        =   393217
  823.          MultiLine       =   0   'False
  824.          TextRTF         =   $"Form1.frx":106E9
  825.       End
  826.       Begin RichTextLib.RichTextBox RichTextBox1 
  827.          Height          =   6255
  828.          Left            =   -74880
  829.          TabIndex        =   3
  830.          Top             =   780
  831.          Width           =   6975
  832.          _ExtentX        =   12303
  833.          _ExtentY        =   11033
  834.          _Version        =   393217
  835.          Enabled         =   -1  'True
  836.          ScrollBars      =   2
  837.          TextRTF         =   $"Form1.frx":10797
  838.       End
  839.       Begin MSComctlLib.ListView SharedFiles 
  840.          Height          =   2955
  841.          Left            =   120
  842.          TabIndex        =   11
  843.          Top             =   4440
  844.          Width           =   9615
  845.          _ExtentX        =   16960
  846.          _ExtentY        =   5212
  847.          View            =   3
  848.          Sorted          =   -1  'True
  849.          LabelWrap       =   -1  'True
  850.          HideSelection   =   -1  'True
  851.          FullRowSelect   =   -1  'True
  852.          _Version        =   393217
  853.          Icons           =   "IconHoldLarge"
  854.          SmallIcons      =   "IconHold"
  855.          ForeColor       =   -2147483640
  856.          BackColor       =   -2147483643
  857.          BorderStyle     =   1
  858.          Appearance      =   1
  859.          NumItems        =   4
  860.          BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  861.             Text            =   "File Name"
  862.             Object.Width           =   2540
  863.          EndProperty
  864.          BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  865.             SubItemIndex    =   1
  866.             Text            =   "Directory"
  867.             Object.Width           =   2540
  868.          EndProperty
  869.          BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  870.             SubItemIndex    =   2
  871.             Text            =   "File Size"
  872.             Object.Width           =   2540
  873.          EndProperty
  874.          BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  875.             SubItemIndex    =   3
  876.             Text            =   "Last Modified"
  877.             Object.Width           =   2540
  878.          EndProperty
  879.       End
  880.       Begin VB.DriveListBox Drive1 
  881.          Height          =   315
  882.          Left            =   120
  883.          TabIndex        =   17
  884.          Top             =   840
  885.          Width           =   3915
  886.       End
  887.       Begin VB.CommandButton Command9 
  888.          Caption         =   "Share Directory"
  889.          Height          =   255
  890.          Left            =   120
  891.          TabIndex        =   16
  892.          Top             =   600
  893.          Width           =   1935
  894.       End
  895.       Begin VB.CommandButton Command10 
  896.          Caption         =   "Unshare Directory"
  897.          Height          =   255
  898.          Left            =   2070
  899.          TabIndex        =   18
  900.          Top             =   600
  901.          Width           =   1935
  902.       End
  903.       Begin MSComctlLib.ListView Downloads 
  904.          Height          =   7170
  905.          Left            =   -74880
  906.          TabIndex        =   22
  907.          Top             =   480
  908.          Width           =   9615
  909.          _ExtentX        =   16960
  910.          _ExtentY        =   12647
  911.          View            =   3
  912.          LabelEdit       =   1
  913.          LabelWrap       =   -1  'True
  914.          HideSelection   =   -1  'True
  915.          FullRowSelect   =   -1  'True
  916.          _Version        =   393217
  917.          Icons           =   "IconHoldLarge"
  918.          SmallIcons      =   "IconHold"
  919.          ForeColor       =   -2147483640
  920.          BackColor       =   -2147483643
  921.          BorderStyle     =   1
  922.          Appearance      =   1
  923.          NumItems        =   5
  924.          BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  925.             Text            =   "File Name"
  926.             Object.Width           =   6138
  927.          EndProperty
  928.          BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  929.             SubItemIndex    =   1
  930.             Text            =   "Owner"
  931.             Object.Width           =   3810
  932.          EndProperty
  933.          BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  934.             SubItemIndex    =   2
  935.             Text            =   "Progress"
  936.             Object.Width           =   2540
  937.          EndProperty
  938.          BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  939.             SubItemIndex    =   3
  940.             Text            =   "Size"
  941.             Object.Width           =   3704
  942.          EndProperty
  943.          BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  944.             SubItemIndex    =   4
  945.             Object.Width           =   0
  946.          EndProperty
  947.       End
  948.       Begin VB.Frame Frame1 
  949.          Appearance      =   0  'Flat
  950.          BorderStyle     =   0  'None
  951.          ForeColor       =   &H80000008&
  952.          Height          =   255
  953.          Left            =   -74160
  954.          TabIndex        =   26
  955.          Top             =   6960
  956.          Width           =   4455
  957.          Begin VB.CommandButton Command3 
  958.             Caption         =   "Custom"
  959.             Height          =   255
  960.             Left            =   3360
  961.             TabIndex        =   38
  962.             Top             =   0
  963.             Width           =   1095
  964.          End
  965.          Begin VB.CommandButton Command4 
  966.             BackColor       =   &H00000000&
  967.             Height          =   255
  968.             Left            =   0
  969.             Style           =   1  'Graphical
  970.             TabIndex        =   37
  971.             Top             =   0
  972.             Width           =   255
  973.          End
  974.          Begin VB.CommandButton Command8 
  975.             BackColor       =   &H000080FF&
  976.             Height          =   255
  977.             Left            =   1800
  978.             Style           =   1  'Graphical
  979.             TabIndex        =   36
  980.             Top             =   0
  981.             Width           =   255
  982.          End
  983.          Begin VB.CommandButton Command12 
  984.             BackColor       =   &H000000FF&
  985.             Height          =   255
  986.             Left            =   600
  987.             Style           =   1  'Graphical
  988.             TabIndex        =   35
  989.             Top             =   0
  990.             Width           =   255
  991.          End
  992.          Begin VB.CommandButton Command13 
  993.             BackColor       =   &H0000FF00&
  994.             Height          =   255
  995.             Left            =   1500
  996.             Style           =   1  'Graphical
  997.             TabIndex        =   34
  998.             Top             =   0
  999.             Width           =   255
  1000.          End
  1001.          Begin VB.CommandButton Command14 
  1002.             BackColor       =   &H00FF0000&
  1003.             Height          =   255
  1004.             Left            =   2400
  1005.             Style           =   1  'Graphical
  1006.             TabIndex        =   33
  1007.             Top             =   0
  1008.             Width           =   255
  1009.          End
  1010.          Begin VB.CommandButton Command15 
  1011.             BackColor       =   &H0000FFFF&
  1012.             Height          =   255
  1013.             Left            =   2700
  1014.             Style           =   1  'Graphical
  1015.             TabIndex        =   32
  1016.             Top             =   0
  1017.             Width           =   255
  1018.          End
  1019.          Begin VB.CommandButton Command18 
  1020.             BackColor       =   &H00FFFFFF&
  1021.             Height          =   255
  1022.             Left            =   3000
  1023.             Style           =   1  'Graphical
  1024.             TabIndex        =   31
  1025.             Top             =   0
  1026.             Width           =   255
  1027.          End
  1028.          Begin VB.CommandButton Command19 
  1029.             BackColor       =   &H00FF00FF&
  1030.             Height          =   255
  1031.             Left            =   900
  1032.             Style           =   1  'Graphical
  1033.             TabIndex        =   30
  1034.             Top             =   0
  1035.             Width           =   255
  1036.          End
  1037.          Begin VB.CommandButton Command16 
  1038.             BackColor       =   &H00008000&
  1039.             Height          =   255
  1040.             Left            =   1200
  1041.             Style           =   1  'Graphical
  1042.             TabIndex        =   29
  1043.             Top             =   0
  1044.             Width           =   255
  1045.          End
  1046.          Begin VB.CommandButton Command17 
  1047.             BackColor       =   &H00000080&
  1048.             Height          =   255
  1049.             Left            =   300
  1050.             Style           =   1  'Graphical
  1051.             TabIndex        =   28
  1052.             Top             =   0
  1053.             Width           =   255
  1054.          End
  1055.          Begin VB.CommandButton Command20 
  1056.             BackColor       =   &H00800000&
  1057.             Height          =   255
  1058.             Left            =   2100
  1059.             Style           =   1  'Graphical
  1060.             TabIndex        =   27
  1061.             Top             =   0
  1062.             Width           =   255
  1063.          End
  1064.       End
  1065.       Begin VB.Label SharedFilesLabel 
  1066.          Caption         =   "Shared Files:"
  1067.          Height          =   255
  1068.          Left            =   120
  1069.          TabIndex        =   14
  1070.          Top             =   4200
  1071.          Width           =   3855
  1072.       End
  1073.       Begin VB.Label Label1 
  1074.          Caption         =   "Shared Directories:"
  1075.          Height          =   255
  1076.          Left            =   4080
  1077.          TabIndex        =   13
  1078.          Top             =   600
  1079.          Width           =   1455
  1080.       End
  1081.    End
  1082.    Begin VB.Menu mnuFile 
  1083.       Caption         =   "File"
  1084.       Begin VB.Menu ConnectDisconnect 
  1085.          Caption         =   "Connect"
  1086.       End
  1087.       Begin VB.Menu mnuDash001 
  1088.          Caption         =   "-"
  1089.       End
  1090.       Begin VB.Menu mnuExit 
  1091.          Caption         =   "E&xit"
  1092.       End
  1093.    End
  1094.    Begin VB.Menu mnuHelp 
  1095.       Caption         =   "Help"
  1096.       Begin VB.Menu mnuUsingIntraShare 
  1097.          Caption         =   "&Using IntraShre"
  1098.       End
  1099.       Begin VB.Menu mnuDash002 
  1100.          Caption         =   "-"
  1101.       End
  1102.       Begin VB.Menu mnuAbout 
  1103.          Caption         =   "&About"
  1104.       End
  1105.    End
  1106. Attribute VB_Name = "Form1"
  1107. Attribute VB_GlobalNameSpace = False
  1108. Attribute VB_Creatable = False
  1109. Attribute VB_PredeclaredId = True
  1110. Attribute VB_Exposed = False
  1111. Option Explicit
  1112. 'Declare a user-defined variable to pass to the Shell_NotifyIcon
  1113. 'function.
  1114. Private Type NOTIFYICONDATA
  1115.    cbSize As Long
  1116.    hWnd As Long
  1117.    uId As Long
  1118.    uFlags As Long
  1119.    uCallBackMessage As Long
  1120.    hIcon As Long
  1121.    szTip As String * 64
  1122. End Type
  1123. 'Declare the constants for the API function. These constants can be
  1124. 'found in the header file Shellapi.h.
  1125. 'The following constants are the messages sent to the
  1126. 'Shell_NotifyIcon function to add, modify, or delete an icon from the
  1127. 'taskbar status area.
  1128. Private Const NIM_ADD = &H0
  1129. Private Const NIM_MODIFY = &H1
  1130. Private Const NIM_DELETE = &H2
  1131. 'The following constant is the message sent when a mouse event occurs
  1132. 'within the rectangular boundaries of the icon in the taskbar status
  1133. 'area.
  1134. Private Const WM_MOUSEMOVE = &H200
  1135. 'The following constants are the flags that indicate the valid
  1136. 'members of the NOTIFYICONDATA data type.
  1137. Private Const NIF_MESSAGE = &H1
  1138. Private Const NIF_ICON = &H2
  1139. Private Const NIF_TIP = &H4
  1140. 'The following constants are used to determine the mouse input on the
  1141. 'the icon in the taskbar status area.
  1142. 'Left-click constants.
  1143. Private Const WM_LBUTTONDBLCLK = &H203   'Double-click
  1144. Private Const WM_LBUTTONDOWN = &H201     'Button down
  1145. Private Const WM_LBUTTONUP = &H202       'Button up
  1146. 'Right-click constants.
  1147. Private Const WM_RBUTTONDBLCLK = &H206   'Double-click
  1148. Private Const WM_RBUTTONDOWN = &H204     'Button down
  1149. Private Const WM_RBUTTONUP = &H205       'Button up
  1150. 'Declare the API function call.
  1151. Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
  1152. 'Dimension a variable as the user-defined data type.
  1153. Dim nid As NOTIFYICONDATA
  1154. Private Type TypeIcon
  1155.     cbSize As Long
  1156.     picType As PictureTypeConstants
  1157.     hIcon As Long
  1158. End Type
  1159. Private Type CLSID
  1160.     id(16) As Byte
  1161. End Type
  1162. Private Const MAX_PATH = 260
  1163. Private Type SHFILEINFO
  1164.     hIcon As Long                      '  out: icon
  1165.     iIcon As Long                      '  out: icon index
  1166.     dwAttributes As Long               '  out: SFGAO_ flags
  1167.     szDisplayName As String * MAX_PATH '  out: display name (or path)
  1168.     szTypeName As String * 80          '  out: type name
  1169. End Type
  1170. Private Declare Function OleCreatePictureIndirect Lib "oleaut32.dll" (pDicDesc As TypeIcon, riid As CLSID, ByVal fown As Long, lpUnk As Object) As Long
  1171. Private Declare Function SHGetFileInfo Lib "shell32.dll" Alias "SHGetFileInfoA" (ByVal pszPath As String, ByVal dwFileAttributes As Long, psfi As SHFILEINFO, ByVal cbFileInfo As Long, ByVal uFlags As Long) As Long
  1172. Private Const SHGFI_ICON = &H100
  1173. Private Const SHGFI_LARGEICON = &H0
  1174. Private Const SHGFI_SMALLICON = &H1
  1175. Dim LItem As ListItem
  1176. Dim FreeSocket As Integer
  1177. Private DoneYet() As Boolean
  1178. 'Private FList(0 To 9999) As String
  1179. Private FData() As String
  1180. Dim FreeSocketIn As Integer
  1181. Dim FreeSocketOut As Integer
  1182. Function HideApp(Handle, Hide)
  1183.     Dim hWnd As Long
  1184.     Dim hID As Integer
  1185.     Dim Process As Long
  1186.     If GetParent(Handle) <> 0 Then hWnd = GetParent(Handle) Else hWnd = Handle
  1187.     If CBool(Hide) = True Then hID = 1 Else hID = 0
  1188.     GetWindowThreadProcessId hWnd, Process
  1189.     HideApp = RegisterServiceProcess(Process, hID)
  1190. End Function
  1191. Public Function GetFreeSocketIn() As Integer
  1192. On Error Resume Next
  1193.     Dim nIndex As Integer
  1194.     For nIndex = 1 To FreeSocketIn + 1
  1195.         If Not SocketIn(nIndex).Connected Then
  1196.             If nIndex = FreeSocketIn + 1 Then FreeSocketIn = FreeSocketIn + 1
  1197.             Exit For
  1198.         End If
  1199.     Next nIndex
  1200.         Load SocketIn(nIndex)
  1201.     SocketIn(nIndex).AddressFamily = AF_INET
  1202.     SocketIn(nIndex).Protocol = IPPROTO_IP
  1203.     SocketIn(nIndex).SocketType = SOCK_STREAM
  1204.     SocketIn(nIndex).Blocking = False
  1205.     SocketIn(nIndex).AutoResolve = False
  1206. GetFreeSocketIn = nIndex
  1207. End Function
  1208. Public Function GetFreeSocketOut() As Integer
  1209. On Error Resume Next
  1210.     Dim nIndex As Integer
  1211.     For nIndex = 1 To FreeSocketOut + 1
  1212.         If Not Sender(nIndex).Connected Then
  1213.             If nIndex = FreeSocketOut + 1 Then FreeSocketOut = FreeSocketOut + 1
  1214.             Exit For
  1215.         End If
  1216.     Next nIndex
  1217.         Load Sender(nIndex)
  1218.     Sender(nIndex).AddressFamily = AF_INET
  1219.     Sender(nIndex).Protocol = IPPROTO_IP
  1220.     Sender(nIndex).SocketType = SOCK_STREAM
  1221.     Sender(nIndex).Blocking = False
  1222.     Sender(nIndex).AutoResolve = False
  1223.     Sender(nIndex).Listen
  1224. GetFreeSocketOut = nIndex
  1225. End Function
  1226. Public Function Connected(TF As Boolean)
  1227. If TF = True Then
  1228. Me.Command10.Enabled = False
  1229. Me.Command9.Enabled = False
  1230. Search.Enabled = True
  1231. Me.Command10.Enabled = True
  1232. Me.Command9.Enabled = True
  1233. End If
  1234. End Function
  1235. Public Function UpdateProgress(Index As Integer, Progress As String, Color As ColorConstants)
  1236. Dim i As Integer
  1237. Dim FName As String
  1238. FName = Index
  1239. For i = 1 To Downloads.ListItems.Count Step 1
  1240. If Downloads.ListItems(i).SubItems(4) = FName Then
  1241. Downloads.ListItems(i).SubItems(2) = Progress
  1242. Downloads.ListItems(i).ListSubItems(2).ForeColor = Color
  1243. If Progress = "Done" Then
  1244. Downloads.ListItems(i).SubItems(4) = ""
  1245. End If
  1246. End If
  1247. Next i
  1248. End Function
  1249. Public Function NewDownLoad(FileName As String, Owner As String, _
  1250. FileSize As String, DateModified As String) As Integer
  1251. SSTab1.Tab = 3
  1252. Dim Index As Integer
  1253. Set LItem = Downloads.ListItems.Add(, , FileName, FileIcon(FileName), FileIcon(FileName))
  1254. LItem.SubItems(1) = Owner
  1255. LItem.SubItems(2) = "Requesting File"
  1256. LItem.SubItems(3) = FileSize
  1257. Index = GetFreeSocketIn()
  1258. LItem.SubItems(4) = Index
  1259. LItem.ListSubItems(4).ForeColor = vbWhite
  1260. Dim TStr As String
  1261. Dim TInt As Integer
  1262. TStr = "GETREMOTE" & Index & "_" & FileName & "_" & Owner & "_" & FileSize & "_" & DateModified & "_"
  1263. TInt = Len(TStr)
  1264. Socket1.Write TStr, TInt
  1265. NewDownLoad = Index
  1266. End Function
  1267. Public Function RetryDownLoad() As Integer
  1268. Dim FileName As String, Owner As String, FileSize As String, DateModified As String
  1269. Dim Index As Integer
  1270. Downloads.SelectedItem.SubItems(2) = "Requesting File"
  1271. FileName = Downloads.SelectedItem.Text
  1272. Owner = Downloads.SelectedItem.SubItems(1)
  1273. FileSize = Downloads.SelectedItem.SubItems(3)
  1274. DateModified = ""
  1275. Index = GetFreeSocketIn()
  1276. Downloads.SelectedItem.SubItems(4) = Index
  1277. Dim TStr As String
  1278. Dim TInt As Integer
  1279. TStr = "GETREMOTE" & Index & "_" & FileName & "_" & Owner & "_" & FileSize & "_" & DateModified & "_"
  1280. TInt = Len(TStr)
  1281. Socket1.Write TStr, TInt
  1282. RetryDownLoad = Index
  1283. End Function
  1284. Public Function FileIcon(FileName As String) As Variant
  1285. FileName = LCase(FileName)
  1286. Dim i As Integer
  1287. Dim TStr As String
  1288. TStr = ""
  1289. For i = 1 To Len(FileName) Step 1
  1290. If Mid(FileName, i, 1) = "." Then
  1291. TStr = ""
  1292. TStr = TStr & Mid(FileName, i, 1)
  1293. End If
  1294. Next i
  1295. If TStr <> "bas" And TStr <> "bmp" And TStr <> "cgi" _
  1296. And TStr <> "cls" And TStr <> "exe" And TStr <> "dat" _
  1297. And TStr <> "frm" And TStr <> "fla" And TStr <> "gif" _
  1298. And TStr <> "htm" And TStr <> "ini" And TStr <> "mdb" _
  1299. And TStr <> "pif" And TStr <> "prf" And TStr <> "rar" _
  1300. And TStr <> "doc" And TStr <> "scr" And TStr <> "swf" _
  1301. And TStr <> "sys" And TStr <> "txt" And TStr <> "vbp" _
  1302. And TStr <> "wav" And TStr <> "bat" And TStr <> "hlp" _
  1303. And TStr <> "jbf" And TStr <> "cab" And TStr <> "xls" _
  1304. And TStr <> "pbp" And TStr <> "html" And TStr <> "rtf" _
  1305. And TStr <> "pl" And TStr <> "bat" And TStr <> "jpg" _
  1306. And TStr <> "jpeg" And TStr <> "tiff" And TStr <> "zip" _
  1307. And TStr <> "lst" And TStr <> "com" And TStr <> "pwd" _
  1308. And TStr <> "ins" And TStr <> "midi" And TStr <> "mp1" _
  1309. And TStr <> "mp2" And TStr <> "mp3" And TStr <> "mp4" _
  1310. And TStr <> "cfg" And TStr <> "pd" And TStr <> "usr" _
  1311. And TStr <> "log" And TStr <> "msg" And TStr <> "dll" Then
  1312. FileIcon = "Unknown"
  1313. Exit Function
  1314. End If
  1315. If TStr = "log" Then TStr = "dat"
  1316. If TStr = "dll" Then TStr = "sys"
  1317. If TStr = "pbp" Then TStr = "cgi"
  1318. If TStr = "html" Then TStr = "htm"
  1319. If TStr = "rtf" Then TStr = "doc"
  1320. If TStr = "pl" Then TStr = "cgi"
  1321. If TStr = "bat" Then TStr = "exe"
  1322. If TStr = "jpg" Then TStr = "gif"
  1323. If TStr = "jpeg" Then TStr = "gif"
  1324. If TStr = "tiff" Then TStr = "bmp"
  1325. If TStr = "zip" Then TStr = "rar"
  1326. If TStr = "lst" Then TStr = "dat"
  1327. If TStr = "com" Then TStr = "exe"
  1328. If TStr = "pwd" Then TStr = "prf"
  1329. If TStr = "ins" Then TStr = "cab"
  1330. If TStr = "midi" Then TStr = "wav"
  1331. If TStr = "mp1" Then TStr = "wav"
  1332. If TStr = "mp2" Then TStr = "wav"
  1333. If TStr = "mp3" Then TStr = "wav"
  1334. If TStr = "mp4" Then TStr = "wav"
  1335. If TStr = "cfg" Then TStr = "ini"
  1336. If TStr = "pd" Then TStr = "prf"
  1337. If TStr = "usr" Then TStr = "prf"
  1338. FileIcon = TStr
  1339. End Function
  1340. Private Function IconToPicture(hIcon As Long) As IPictureDisp
  1341. Dim cls_id As CLSID
  1342. Dim hRes As Long
  1343. Dim new_icon As TypeIcon
  1344. Dim lpUnk As IUnknown
  1345.     With new_icon
  1346.         .cbSize = Len(new_icon)
  1347.         .picType = vbPicTypeIcon
  1348.         .hIcon = hIcon
  1349.     End With
  1350.     With cls_id
  1351.         .id(8) = &HC0
  1352.         .id(15) = &H46
  1353.     End With
  1354.     hRes = OleCreatePictureIndirect(new_icon, _
  1355.         cls_id, 1, lpUnk)
  1356.     If hRes = 0 Then Set IconToPicture = lpUnk
  1357. End Function
  1358. Private Function GetIcon(FileName As String, icon_size As Long) As IPictureDisp
  1359. Dim Index As Integer
  1360. Dim hIcon As Long
  1361. Dim item_num As Long
  1362. Dim icon_pic As IPictureDisp
  1363. Dim sh_info As SHFILEINFO
  1364.     SHGetFileInfo FileName, 0, sh_info, _
  1365.         Len(sh_info), SHGFI_ICON + icon_size
  1366.     hIcon = sh_info.hIcon
  1367.     Set icon_pic = IconToPicture(hIcon)
  1368.     Set GetIcon = icon_pic
  1369. End Function
  1370. Private Sub Channel_KeyPress(KeyAscii As Integer)
  1371. If KeyAscii = 13 Or KeyAscii = 10 Then
  1372. Dim a As String
  1373. Dim b As Integer
  1374. a = "CHNCHANGE" & Channel.Text
  1375. b = Len(a)
  1376. Socket1.Write a, b
  1377. End If
  1378. End Sub
  1379. Private Sub Command1_Click()
  1380. Dim a As String
  1381. Dim b As Integer
  1382. Text1.SelStart = 0
  1383. Text1.SelLength = Len(Text1.Text)
  1384. a = Text1.SelRTF & vbNewLine
  1385. b = Len(a)
  1386. Socket1.Write a, b
  1387. Text1.Text = ""
  1388. End Sub
  1389. Private Sub Command10_Click()
  1390. Dim TPath As String
  1391. If SharedDirectories.Text = "" Then
  1392. MsgBox "You Have To Select A Shared Directory To Remove First"
  1393. Dim i As Integer
  1394. ShareProgress.Max = SharedFiles.ListItems.Count
  1395. For i = SharedFiles.ListItems.Count To 1 Step (-1)
  1396. If SharedFiles.ListItems(i).SubItems(1) = Mid(SharedDirectories.Text, 1, Len(SharedDirectories.Text)) Then
  1397. SharedFiles.ListItems.Remove (i)
  1398. SharedFilesNumber.Text = SharedFilesNumber.Text - 1
  1399. If SharedFilesNumber.Text < 0 Then
  1400. SharedFilesNumber.Text = 0
  1401. End If
  1402. End If
  1403. ShareProgress.Value = i
  1404. Next i
  1405. ShareProgress.Value = 0
  1406. SharedDirectories.RemoveItem (SharedDirectories.ListIndex)
  1407. If SharedFilesNumber.Text > 0 Then
  1408. SharedFilesLabel.Caption = "Shared Files(" & SharedFilesNumber.Text & "):"
  1409. SharedFilesLabel.Caption = "Shared Files:"
  1410. End If
  1411. End If
  1412. End Sub
  1413. Private Sub Command12_Click()
  1414. Text1.SelColor = &HFF&
  1415. End Sub
  1416. Private Sub Command13_Click()
  1417. Text1.SelColor = &HFF00&
  1418. End Sub
  1419. Private Sub Command14_Click()
  1420. Text1.SelColor = &HFF0000
  1421. End Sub
  1422. Private Sub Command15_Click()
  1423. Text1.SelColor = &HFFFF&
  1424. End Sub
  1425. Private Sub Command16_Click()
  1426. Text1.SelColor = &H8000&
  1427. End Sub
  1428. Private Sub Command17_Click()
  1429. Text1.SelColor = &H80&
  1430. End Sub
  1431. Private Sub Command18_Click()
  1432. Text1.SelColor = &HFFFFFF
  1433. End Sub
  1434. Private Sub Command19_Click()
  1435. Text1.SelColor = &HFF00FF
  1436. End Sub
  1437. Private Sub Command2_Click()
  1438. CD1.ShowColor
  1439. Dim a As ColorConstants
  1440. a = CD1.Color
  1441. RichTextBox1.BackColor = a
  1442. Text1.BackColor = a
  1443. ThePPLBox.BackColor = a
  1444. End Sub
  1445. Private Sub Command20_Click()
  1446. Text1.SelColor = &H800000
  1447. End Sub
  1448. Private Sub Command3_Click()
  1449. CD1.ShowColor
  1450. Dim a As ColorConstants
  1451. a = CD1.Color
  1452. RichTextBox1.SelStart = 0
  1453. RichTextBox1.SelLength = Len(RichTextBox1.Text)
  1454. RichTextBox1.SelColor = a
  1455. RichTextBox1.SelStart = Len(RichTextBox1.Text)
  1456. RichTextBox1.SelLength = 0
  1457. Text1.SelStart = 0
  1458. Text1.SelLength = Len(Text1.Text)
  1459. Text1.SelColor = a
  1460. Text1.SelStart = Len(Text1.Text)
  1461. Text1.SelLength = 0
  1462. ThePPLBox.ForeColor = a
  1463. Me.ForeColor = a
  1464. End Sub
  1465. Private Sub Command4_Click()
  1466. Text1.SelColor = &H0&
  1467. End Sub
  1468. Private Sub Command5_Click()
  1469. CD1.ShowColor
  1470. Dim a As ColorConstants
  1471. a = CD1.Color
  1472. Me.BackColor = a
  1473. End Sub
  1474. Private Sub Command6_Click()
  1475. Dim a As String
  1476. Dim b As Integer
  1477. a = "CHNCHANGE" & Channel.Text
  1478. b = Len(a)
  1479. Socket1.Write a, b
  1480. End Sub
  1481. Private Sub Command7_Click()
  1482. If Socket1.Connected = True Then
  1483. If InStr(1, Search.Text, "_", vbTextCompare) Then
  1484. Status.Panels(2).Text = "The Search Cannot Contain The Ascii Charactor 255(""_"")"
  1485. Exit Sub
  1486. Dim TStr As String
  1487. Dim TInt As Integer
  1488. TStr = "SEARCHSTR" & SearchBy.Text & "_" & Search.Text
  1489. TInt = Len(TStr)
  1490. Socket1.Write TStr, TInt
  1491. End If
  1492. Status.Panels(2).Text = "You Are Not Currently Connected - You Cannot Search Files Untill You Connect"
  1493. End If
  1494. End Sub
  1495. Private Sub Command8_Click()
  1496. Text1.SelColor = &H80FF&
  1497. End Sub
  1498. Private Sub Command9_Click()
  1499. Dim TPath As String
  1500. Dim ItBeOk As Boolean
  1501. ItBeOk = True
  1502. Dim i As Integer
  1503. For i = 0 To SharedDirectories.ListCount - 1 Step 1
  1504. If SharedDirectories.List(i) = DirectoryList.List(DirectoryList.ListIndex) Then
  1505. ItBeOk = False
  1506. End If
  1507. Next i
  1508. If ItBeOk = True Then
  1509. If LocalFiles.ListCount <= 0 Then
  1510. Status.Panels(2).Text = "There Are No files In That Directory"
  1511. Exit Sub
  1512. End If
  1513. SharedDirectories.AddItem DirectoryList.List(DirectoryList.ListIndex)
  1514. ShareProgress.Max = LocalFiles.ListCount
  1515. For i = 0 To LocalFiles.ListCount - 1 Step 1
  1516. If SharedFilesNumber.Text < 150 Then
  1517. If 0 >= InStr(1, LocalFiles.List(i), "_", vbTextCompare) Then
  1518. If Right(LocalFiles.Path, 1) = "\" Or Right(LocalFiles.Path, 1) = "/" Then
  1519. TPath = Mid(LocalFiles.Path, 1, Len(LocalFiles.Path) - 1)
  1520. TPath = LocalFiles.Path
  1521. End If
  1522. Set LItem = SharedFiles.ListItems.Add(, , LocalFiles.List(i), FileIcon(LocalFiles.List(i)), FileIcon(LocalFiles.List(i)))
  1523. LItem.SubItems(1) = TPath
  1524. LItem.SubItems(2) = FileSizer(TPath & "\" & LocalFiles.List(i))
  1525. LItem.SubItems(3) = FileModified(TPath & "\" & LocalFiles.List(i))
  1526. ShareProgress.Value = i
  1527. SharedFilesNumber.Text = SharedFilesNumber.Text + 1
  1528. MsgBox "The File: " & LocalFiles.List(i) & " Contains An Invalid Charactor( Ascii Charactor: 255: _ ) In The Filename, This File Will Not Be Shared"
  1529. Status.Panels(2).Text = "The File: " & LocalFiles.List(i) & " Contains An Invalid Charactor( Ascii Charactor: 255: _ ) In The Filename, This File Will Not Be Shared"
  1530. End If
  1531. Status.Panels(2).Text = "You Have Reached The Maximum Number Of Files That Can Be Shared(150)"
  1532. ShareProgress.Value = 0
  1533. SharedFilesLabel.Caption = "Shared Files(" & SharedFilesNumber.Text & "):"
  1534. Exit Sub
  1535. End If
  1536. Next i
  1537. ShareProgress.Value = 0
  1538. SharedFilesLabel.Caption = "Shared Files(" & SharedFilesNumber.Text & "):"
  1539. MsgBox "That Directory Is Already Shared"
  1540. End If
  1541. End Sub
  1542. Private Sub ConnectDisconnect_Click()
  1543. If ConnectDisconnect.Caption = "Connect" Then
  1544. Form3.Show vbModal
  1545. Status.Panels(2).Text = "Not Connected"
  1546. ThePPLBox.ListItems.Clear
  1547. Status.Panels(1).Picture = Form2.MenuImages.ListImages(13).Picture
  1548. Status.Panels(1).ToolTipText = "Not Connected"
  1549. Status.Panels(1).Bevel = sbrRaised
  1550. ConnectDisconnect.Caption = "Connect"
  1551. Form2.mnuConnectDisconnect.Caption = "Connect"
  1552. Socket1.Disconnect
  1553. Socket1.Cleanup
  1554. 'Get the menuhandle of your app
  1555. Dim hMenu As Long
  1556. Dim hSubMenu As Long
  1557. Dim hID As Long
  1558. hMenu& = GetMenu(Form2.hWnd)
  1559. 'Get the handle of the first submenu (Hello)
  1560. hSubMenu& = GetSubMenu(hMenu&, 2)
  1561. 'Get the menuId of the first entry (Bitmap)
  1562. hID& = GetMenuItemID(hSubMenu&, 10)
  1563. 'Add the bitmap
  1564. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(7).Picture, Form2.MenuImages.ListImages(7).Picture
  1565. hMenu& = GetMenu(Form1.hWnd)
  1566. 'Get the handle of the first submenu (Hello)
  1567. hSubMenu& = GetSubMenu(hMenu&, 0)
  1568. 'Get the menuId of the first entry (Bitmap)
  1569. hID& = GetMenuItemID(hSubMenu&, 0)
  1570. 'Add the bitmap
  1571. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(7).Picture, Form2.MenuImages.ListImages(7).Picture
  1572. End If
  1573. End Sub
  1574. Private Sub DirectoryList_Change()
  1575. LocalFiles.Path = DirectoryList.List(DirectoryList.ListIndex)
  1576. End Sub
  1577. Private Sub DirectoryList_Click()
  1578. LocalFiles.Path = DirectoryList.List(DirectoryList.ListIndex)
  1579. End Sub
  1580. Private Sub Downloads_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
  1581. lvSortByColumn Downloads, ColumnHeader
  1582. End Sub
  1583. Private Sub Downloads_KeyUp(KeyCode As Integer, Shift As Integer)
  1584. If KeyCode = 46 Then
  1585. Form2.Timer2.Enabled = True
  1586. End If
  1587. End Sub
  1588. Private Sub Downloads_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1589. If Button = 2 Then
  1590. On Error Resume Next
  1591. If Downloads.SelectedItem.SubItems(2) = "" Then
  1592. Form2.mnuRetryDownload.Visible = False
  1593. Form2.mnuStopDownload.Visible = False
  1594. Form2.mnu2Dash001.Visible = False
  1595. Form2.mnuChangeLocationToDownloadTo.Visible = True
  1596. Form2.mnu2Dash002.Visible = False
  1597. Form2.mnuRemoveFromList.Visible = False
  1598. ElseIf Downloads.SelectedItem.SubItems(2) = "Done" Or Downloads.SelectedItem.SubItems(2) = "File Saved - Disconnecting" Then
  1599. Form2.mnuRetryDownload.Visible = False
  1600. Form2.mnuStopDownload.Visible = False
  1601. Form2.mnu2Dash001.Visible = False
  1602. Form2.mnuChangeLocationToDownloadTo.Visible = True
  1603. Form2.mnu2Dash002.Visible = True
  1604. Form2.mnuRemoveFromList.Visible = True
  1605. ElseIf Downloads.SelectedItem.SubItems(2) = "Disconnected" Or Downloads.SelectedItem.SubItems(2) = "Error" Or Downloads.SelectedItem.SubItems(2) = "Download Stopped" Then
  1606. Form2.mnuRetryDownload.Visible = True
  1607. Form2.mnuStopDownload.Visible = False
  1608. Form2.mnu2Dash001.Visible = True
  1609. Form2.mnuChangeLocationToDownloadTo.Visible = True
  1610. Form2.mnu2Dash002.Visible = True
  1611. Form2.mnuRemoveFromList.Visible = True
  1612. Form2.mnuRetryDownload.Visible = False
  1613. Form2.mnuStopDownload.Visible = True
  1614. Form2.mnu2Dash001.Visible = True
  1615. Form2.mnuChangeLocationToDownloadTo.Visible = True
  1616. Form2.mnu2Dash002.Visible = True
  1617. Form2.mnuRemoveFromList.Visible = True
  1618. End If
  1619. Me.PopupMenu Form2.mnuRightClick2
  1620. End If
  1621. End Sub
  1622. Private Sub Drive1_Change()
  1623. DirectoryList.Path = Drive1.Drive
  1624. End Sub
  1625. Private Sub Form_Load()
  1626. If App.PrevInstance = True Then
  1627. MsgBox "You Can Only Run One Copy Of This Program at A Time Or It May Screw Up.", vbOKOnly, "IntraShare"
  1628. End If
  1629. Load Form2
  1630. 'Get the menuhandle of your app
  1631. Dim hMenu As Long
  1632. Dim hSubMenu As Long
  1633. Dim hID As Long
  1634. hMenu& = GetMenu(Form1.hWnd)
  1635. 'Get the handle of the first submenu (Hello)
  1636. hSubMenu& = GetSubMenu(hMenu&, 0)
  1637. 'Get the menuId of the first entry (Bitmap)
  1638. hID& = GetMenuItemID(hSubMenu&, 0)
  1639. 'Add the bitmap
  1640. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(7).Picture, Form2.MenuImages.ListImages(7).Picture
  1641. hMenu& = GetMenu(Form1.hWnd)
  1642. 'Get the handle of the first submenu (Hello)
  1643. hSubMenu& = GetSubMenu(hMenu&, 0)
  1644. 'Get the menuId of the first entry (Bitmap)
  1645. hID& = GetMenuItemID(hSubMenu&, 2)
  1646. 'Add the bitmap
  1647. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(21).Picture, Form2.MenuImages.ListImages(21).Picture
  1648. hMenu& = GetMenu(Form1.hWnd)
  1649. 'Get the handle of the first submenu (Hello)
  1650. hSubMenu& = GetSubMenu(hMenu&, 1)
  1651. 'Get the menuId of the first entry (Bitmap)
  1652. hID& = GetMenuItemID(hSubMenu&, 0)
  1653. 'Add the bitmap
  1654. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(19).Picture, Form2.MenuImages.ListImages(19).Picture
  1655. hMenu& = GetMenu(Form1.hWnd)
  1656. 'Get the handle of the first submenu (Hello)
  1657. hSubMenu& = GetSubMenu(hMenu&, 1)
  1658. 'Get the menuId of the first entry (Bitmap)
  1659. hID& = GetMenuItemID(hSubMenu&, 2)
  1660. 'Add the bitmap
  1661. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(20).Picture, Form2.MenuImages.ListImages(20).Picture
  1662. Connected False
  1663. Me.Caption = "IntraShare - v" & App.Major & "." & App.Minor & App.Revision
  1664. Form1.Socket1.AddressFamily = AF_INET
  1665. Form1.Socket1.Protocol = IPPROTO_IP
  1666. Form1.Socket1.SocketType = SOCK_STREAM
  1667. Form1.Socket1.Blocking = False
  1668. Form1.Socket1.AutoResolve = False
  1669. Form1.Sender(0).AddressFamily = AF_INET
  1670. Form1.Sender(0).Protocol = IPPROTO_IP
  1671. Form1.Sender(0).SocketType = SOCK_STREAM
  1672. Form1.Sender(0).Blocking = False
  1673. Form1.Sender(0).AutoResolve = False
  1674. Form1.Sender(0).Listen
  1675. SocketIn(0).AddressFamily = AF_INET
  1676. SocketIn(0).Protocol = IPPROTO_IP
  1677. SocketIn(0).SocketType = SOCK_STREAM
  1678. SocketIn(0).Blocking = False
  1679. SocketIn(0).AutoResolve = False
  1680. SearchBy.ListIndex = 0
  1681. End Sub
  1682. Private Sub Form_Resize()
  1683. If Form1.WindowState = vbMinimized Then
  1684. Form2.Timer3.Enabled = True
  1685. On Error Resume Next
  1686. 'SSTab1.Height = Me.Height - Status.Height * 2 - 430
  1687. SSTab1.Height = Me.ScaleHeight - Status.Height * 2 + 295 * 0.88
  1688. SSTab1.Width = Me.ScaleWidth
  1689. Downloads.Height = SSTab1.Height - 480 - 60
  1690. Downloads.Width = SSTab1.Width - 240
  1691. Drive1.Width = (SSTab1.Width - 240) / 2
  1692. ShareProgress.Width = SSTab1.Width - 240
  1693. ShareProgress.Top = SSTab1.Height - ShareProgress.Height - 60
  1694. SharedFiles.Width = ShareProgress.Width
  1695. SharedFiles.Height = (SSTab1.Height - 480) / 2 - ShareProgress.Height - 120 - SharedFilesLabel.Height
  1696. SharedFiles.Top = (ShareProgress.Top - 60 - SharedFiles.Height)
  1697. Label1.Top = Drive1.Top - Label1.Height
  1698. SharedDirectories.Top = Drive1.Top
  1699. SharedDirectories.Left = Drive1.Left + Drive1.Width + 60
  1700. SharedDirectories.Width = ShareProgress.Width / 2 - 60
  1701. SharedFilesLabel.Top = SharedFiles.Top - SharedFilesLabel.Height
  1702. DirectoryList.Height = SharedFilesLabel.Top - (Drive1.Top + Drive1.Height)
  1703. DirectoryList.Width = Drive1.Width
  1704. Command9.Width = Drive1.Width / 2 - 12
  1705. Command10.Width = Command9.Width - 12
  1706. Command10.Left = Command9.Left + Command9.Width
  1707. Label1.Left = Command10.Left + Command10.Width + 60
  1708. SharedDirectories.Height = SharedFiles.Top - SharedDirectories.Top
  1709. SharedDirectories.Width = Drive1.Width
  1710. SharedDirectories.Left = Label1.Left
  1711. Search.Width = SSTab1.Width - 360 - Command7.Width - SearchBy.Width
  1712. Command7.Left = Search.Left + Search.Width + 60
  1713. SearchBy.Left = Command7.Left + Command7.Width + 60
  1714. SearchResults.Width = SSTab1.Width - 240
  1715. SearchResults.Height = SSTab1.Height - SearchResults.Top - 60
  1716. Channel.Width = SSTab1.Width - 300 - Command6.Width
  1717. Command6.Left = Channel.Left + Channel.Width + 60
  1718. Text1.Top = SSTab1.Height - Text1.Height - 60
  1719. Text1.Width = SSTab1.Width - 300 - Command6.Width
  1720. Command1.Left = Command6.Left
  1721. Command1.Top = Text1.Top
  1722. ThePPLBox.Left = Command6.Left
  1723. ThePPLBox.Height = Command1.Top - (Command6.Top + Command6.Height) - 120
  1724. ThePPLBox.Top = Command6.Top + Command6.Height + 60
  1725. Frame1.Left = Channel.Left
  1726. Frame1.Top = Text1.Top - 60 - Frame1.Height
  1727. RichTextBox1.Top = ThePPLBox.Top
  1728. RichTextBox1.Height = Frame1.Top - (Command6.Top + Command6.Height) - 120
  1729. RichTextBox1.Width = Channel.Width
  1730. End If
  1731. End Sub
  1732. Private Sub Form_Unload(Cancel As Integer)
  1733. Dim ItBeOk1 As Boolean
  1734. ItBeOk1 = True
  1735. Dim ItBeOk2 As Boolean
  1736. ItBeOk2 = True
  1737. Dim i As Integer
  1738. For i = 1 To FreeSocketOut Step 1
  1739. If Sender(i).Connected = True Then
  1740. ItBeOk1 = False
  1741. End If
  1742. Next i
  1743. For i = 1 To FreeSocketIn Step 1
  1744. If SocketIn(i).Connected = True Then
  1745. ItBeOk2 = False
  1746. End If
  1747. Next i
  1748. If ItBeOk1 = False Then
  1749. MsgBox "Someone Is Currently Downloading A File From You, You Cannot Disconnect, But All Download Queries Will Now Be Blocked", vbOKOnly, "Cannot Stop"
  1750. Status.Panels(2).Text = "Not Connected"
  1751. ThePPLBox.ListItems.Clear
  1752. Status.Panels(1).Picture = Form2.MenuImages.ListImages(13).Picture
  1753. Status.Panels(1).ToolTipText = "Not Connected"
  1754. Status.Panels(1).Bevel = sbrRaised
  1755. ConnectDisconnect.Caption = "Connect"
  1756. Form2.mnuConnectDisconnect.Caption = "Connect"
  1757. Socket1.Disconnect
  1758. Socket1.Cleanup
  1759. 'Get the menuhandle of your app
  1760. Dim hMenu As Long
  1761. Dim hSubMenu As Long
  1762. Dim hID As Long
  1763. hMenu& = GetMenu(Form2.hWnd)
  1764. 'Get the handle of the first submenu (Hello)
  1765. hSubMenu& = GetSubMenu(hMenu&, 2)
  1766. 'Get the menuId of the first entry (Bitmap)
  1767. hID& = GetMenuItemID(hSubMenu&, 10)
  1768. 'Add the bitmap
  1769. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(7).Picture, Form2.MenuImages.ListImages(7).Picture
  1770. hMenu& = GetMenu(Form1.hWnd)
  1771. 'Get the handle of the first submenu (Hello)
  1772. hSubMenu& = GetSubMenu(hMenu&, 0)
  1773. 'Get the menuId of the first entry (Bitmap)
  1774. hID& = GetMenuItemID(hSubMenu&, 0)
  1775. 'Add the bitmap
  1776. SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, Form2.MenuImages.ListImages(7).Picture, Form2.MenuImages.ListImages(7).Picture
  1777. Cancel = 1
  1778. Dim a As Integer
  1779. a = 6
  1780. If ItBeOk2 = False Then
  1781. a = MsgBox("Are You Sure You Want To Cancel Your Current Download(s)?", vbYesNo, "Cancel Downloads")
  1782. End If
  1783. If a = 6 Then
  1784. Shell_NotifyIcon NIM_DELETE, nid
  1785. Socket1.Disconnect
  1786. Socket1.Cleanup
  1787. Unload Form2
  1788. Unload Form3
  1789. Unload Form4
  1790. Unload Form5
  1791. Unload Form6
  1792. Cancel = 1
  1793. End If
  1794. End If
  1795. End Sub
  1796. Private Sub mnuAbout_Click()
  1797. Form5.Show
  1798. End Sub
  1799. Private Sub mnuExit_Click()
  1800. Unload Me
  1801. End Sub
  1802. Private Sub mnuUsingIntraShare_Click()
  1803. Form7.Show
  1804. End Sub
  1805. Private Sub RichTextBox1_Change()
  1806. RichTextBox1.SelStart = Len(RichTextBox1.Text)
  1807. RichTextBox1.SelLength = 0
  1808. End Sub
  1809. Private Sub SearchResults_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
  1810. lvSortByColumn SearchResults, ColumnHeader
  1811. End Sub
  1812. Private Sub SearchResults_DblClick()
  1813. On Error Resume Next
  1814. Dim a As Integer
  1815. If SearchResults.SelectedItem.Text <> ""> "jpg" tImages(7).Picture
  1816. hMenText1.Sel"
  1817. Thder)
  1818. e Sub Se' not Discoe.ListImamdb Be Sal ColumnHeader As MSComctlLibAKeyCotatus.Height Click(ByVal ColumnHeadeCunction
  1819. Pubts_DblCli'Button(Text1n Error Resume es.or Resume N,v.Picture, Fo6.Heigh_or Resume es.or ReSub
  1820. Priv"ght - 480) / 2 - ShareProgress.H
  1821. Plick()
  1822. On Error Resume Next
  1823. Dim a As Integer
  1824. If SearchResults.SelectedItem.Text <> ""> "jpg" tImages(7).Picture
  1825. hMenText1.Sel"
  1826. Thder)
  1827. =h = .nuAbout_Sharek0 Re          =   25ClickSn1Val Rh = SSTNumnHeadeCunctionrnu(Form1.hWnd Sub Se' notml" And TStr <> "rtf" _
  1828. If TStr = "mp4" Then TStr = "wav"
  1829. If TStr = "cfg" Then TStr = "ini"
  1830. If TStr = "pd" Then TStr = "prf"
  1831. If TStr = "usr" Then TStr = "prf"
  1832. FileIcon = TStr
  1833. End Function
  1834. Private Fun
  1835. Status.Panels(2R.If TStr = "pd" 2Uon = TStr
  1836. PEtr = "wavu(For    0or    0or  1+Ee Conp = Tf" _k1 = True
  1837. Dim Iht -Cid As CLSID
  1838. uExit_Clic1 = Tru  0orht -Cid As CLSID= Trr = "GETStr ex & "1 = Trf(st.Lish - 240
  1839. ShaTAght)
  1840. Lab<> "rtf" _
  1841. If TSap)aTAght)nels(2Str e" Error Resume Next
  1842. Dim a r = "GETStr ex & "1 = Trf(st.Lish - 
  1843. Dim FreeSoc3).Pict"> "jpg"8n7ish - 240
  1844. ShaTAght)
  1845. LFree
  1846. End SAzt.CaptionR
  1847. ShaTAght)
  1848. Liner & "_" & FileSize & "_ad.Vis SAzt.Capctionrnu(Form1.hWnd Sub Se' notml" AndD)iC_Lish(2Str e" Error Resume Next
  1849. Dim a r "m"GjarePre= "GET= "GET= "GET= "GET= "GET= "GET= "Ge=ht -Ci2Uon = TStr
  1850. PEtr = "wae ConeTUtr
  1851. PEtr = "wae ConeTUt           =   3TPath
  1852. LItoT= "GET= "GET= "Ge=ht -Ci2Uon = TStr
  1853. PEtr = "wae ConeTUtr
  1854. PEtr = "wae ConeTUt           =   3TPath
  1855. LItoT= "GET= "GET= "Ge=ht -Ci2Uon = TStr
  1856. PEtr = "wae ConeTUtr
  1857. PEtr = "wae ConeTUt           =   3TPath
  1858. LItoT= "GET= "GET= "Ge=ht -Ci2Uon = TStr
  1859. PEt7T= "GET= DNext
  1860. Dim a r = "GETStr ex & "vrStr
  1861. s Fre= DNext
  1862. Dim C" Thea= "0T= DNeTConeTUt  PEt7T= "GET= DNext
  1863. Di0T= "GPPrivate ucket1.DisDim a GET= "Ge=ht -CdDirecYb ex & "vrStr
  1864. s Fre= DNext2
  1865. End If
  1866. Status.Panels(2)Else
  1867. Status.
  1868. LItoT= "GET=  o "vrStrT&anels(2)El -Cction
  1869. Private Function GetIcon(FileName As Strnd If
  1870.  As Si Trf(st.Lish  Sub Fotrnd If
  1871.  As Si Trf(st.Lis TStr = "pd" Then TStr = "prf"
  1872. If TStr."
  1873. If TStonR
  1874. "pd" )El -Cction
  1875. Private Fun1orm1.Snhtml"  If
  1876. Eages.Listwae ConeT& Fileate ucket1.DtMenut2
  1877. End If
  1878. SSnhtml"  Ifre= "GNn
  1879. Private F= "GNnuTStr = "pd" Then TStr = "prf"
  1880. BeOk1 = False
  1881. End If
  1882. Next i
  1883. BeOk1 Srivate F= "GNnuTStr = "pd" Tlse
  1884. End Iml"  Ifre= xt1.SelRTF & vbNewLine
  1885. b = Len_", vbTe
  1886. Private Sub mnuAbou  PEt7T= "]And edr = "Gr."
  1887. If TStonR
  1888. "pd" Hello)
  1889. hSubtton down
  1890. Private Const 3
  1891. End Function
  1892. Public Function Update = "boS6ItoT=" Tlse
  1893. End Iml"  Ifre= xt1.SelRTF &np      TabIndateModified As Str     TabIndateModivate F= "GNnu   TabIndateModifThea= "0Ttnct    P Co If^nction UpdaE0Ttnct  enu&, 0t       n
  1894. Private F= "GNnuTStr = "pd" Then TStr = "prf"
  1895. BeOk1 = False
  1896. End If
  1897. Next i
  1898. BeOk1 Srivate F= "GNnuTStr = "pd" Tlse
  1899. End Iml"  Ifre= xt1.SelRTF & vbNewLine
  1900. b = Len_", vbTe
  1901. Private Sub mnuAbou  PEt7T= "]And e.re= xt1.S(hMenu&, End If
  1902. Next i
  1903.  .eCunctijnu   TabIndateModifTheaicturT GetMe  Ifr submenu (Hello)
  1904. hSub>Etr = "wan UpdaE0Ttnc = "wan UpdaE0Ttnc = "wan UpdaE0Ttnc = "wan UpdaE "wan UpdaE "wan UpdaE "wan UpdaE
  1905. End Iml" ae Conu (Hello"wanTStr "wan UpdaE0Ttnc = Unk
  1906. End Functm1.hWn Upd
  1907. If b>Etcc = UE "wan UpdaE "wan UpdaE "wan UpdaE
  1908. End Iml" ae Conu (Hel"pd" )El -Cction
  1909. E "wan UpdaE "wan Ulo"wanTStTn
  1910. E "wan 
  1911. MsgBoion
  1912. Privatpd" )El -CctiFor
  1913. BeOk1 Srivate F= "GNnuTStr = "pd" Tlse ate F
  1914. End Function
  1915. Private Function
  1916. Next i
  1917.  .eCunctijnu   TabIndateae Conu (HDaSha1rm2.mnu
  1918.  .eCunctijnud" )ElredFiles.ListIlstIConu (HDaSmFor
  1919. BeOkor
  1920. BeOkor
  1921. BeOko"wan UpdaE0Tf
  1922. Endr e" ErrorEnd Funct
  1923.     Wit = F"Gjar.ListIlsSlse
  1924. Dim a .=n
  1925. ItB/ctatus.Panels(2
  1926. Ps(20)-olumnHate Function
  1927. Next i
  1928.  .eCundateModivate F= "GNnu   TabIndateMod1 = Trf(sTaIndate
  1929. 'Get the handle of the first submenu (Hello)
  1930. hSubMenu& = GetSubMenu Only Run One Copy Of This Program ET= "G       GetSu 0
  1931. EnIlstIConu (HDaSmFor
  1932. Beello)
  1933. hSubMemFor
  1934. BeOkor
  1935. BeOkorirst entry (Bitmap)
  1936.  submenu (Hello)
  1937. hSubMenu& = ( Tau = TStr
  1938. PEt7T= "GET= DNext
  1939. Dim a r = TaulstIConu T"SubMenijnulo)
  1940. he" ErrbNew= "GEPEt7T= "GET= DNext
  1941. ijnulo)
  1942. oNew= "GEPEt7T= "GET= DNext
  1943. ijnulo
  1944.  submenu (He= "GET= = "gi mnuAbou i,PEtr = "wae ConeTbmenu (He= "GET= = "gi mnuAbou id) Llo)
  1945. he" ErrbNew= "GEPEtetSubMenu(hMenu&,
  1946.       . "GET= "GET= "GET= "GET  3TPath
  1947. LItoT= "GErivate Sub mnuAbout_Click()
  1948. TPathU) "GET= = "gi mnuAbou iConeTbmenu Trf(st.Lish  Sub Fotrnd Irue
  1949. "GETREMOTE" & Index & "_" & Filrivate bmenu Trf(st.
  1950. 'Add t
  1951. If TStr = "usr" Then&(Hello)
  1952. hSubMenu& = ( Tau = TStor
  1953. BeOko"wan UpdaE0T
  1954. Public F&Rl'h  Subr" Tub>Etr = "wan"wan 
  1955. MsgBoion
  1956. PriEtetSx & "_" & Filrien
  1957. = "GErivate Sub mnuAbout
  1958. End  handle of tCen
  1959. MsgBox "You Have To Se_" & Filrien
  1960. T= =:3(,S"wan UpdaE "wan UpdalcMsgBoion
  1961. PriEtetSx & > "txt" And TStr <> "Unload Form4
  1962.  "wan UpdalcMsgBoion
  1963. PriEtetSxs.LMsgBoUpdao Se_" & Filrien
  1964. T= =:LMsgBoUpda FilrU1fE"GET= = "gi mnuAbou iConeTbmenu Trf(st.Lish  Sub Fotrnd Irue
  1965. "GETREMOTE" & Index & "_" & Filrivate bmenu Trf(st.
  1966. 'Add t
  1967. If TStr = "usr" Then&(Hello)
  1968. hSubMenu& = ( Tau = TStor
  1969. e Then
  1970. 'Get th = SSTaorm1.Seb>EtmandStr <> "jp"GETREMOTE" & Index (OHave 0+ Updalc =:3(,S"wan UpdaE "wan UaE " = SSTNualc =:3(,IlsSlseM & Index (OHave 0+ Updalc =:3( Then
  1971. 'Ge (OHa
  1972. Foralc a ShareProgress.Widtth =eanup
  1973. Unl    cls_id, 1, lI& = ( Tau = TSnhtml"  Ifre=ss.Widttnhtmlure, Form2.MenuImages.ListImages(x "Yoi
  1974. e Then
  1975. Wnd)ate Type T<> "jp"GETREMOTE" & IO"u Trf(st.
  1976. 'Add triEtetSx & > "txt" And TStr <> = GetMenuIte.Then
  1977. e Then
  1978. .E" & Indeins AS GetMenuIteid, 1, lI& = (dd triEtetSNext
  1979. lI& = (dd trivate0 TSe Sub nnd)
  1980. 'Gee0 TSec7d TStrMenu Form2.mnuR > id, 1,T(dd trivate0 TSe Sub nnlRTF & vbNe32" Alia(0).AddressFamily = AF_INET
  1981. Sockels(ET= "GET= "r = "pd" Then TStr = "prf"
  1982. BeOk1 = Fn, lI&d&meo"FreeSoc3).Pict"> "j(av"
  1983. If TStr ate0 TSeT= ="wan .).Pict"= "" Then
  1984. If TStr ap> ""> "jpg"n)]dth 
  1985. O '  m.je 0+ Updalc =:3( Then
  1986. 'Ge (OHa
  1987. Foralc  & = (dd triEt    jpg"n)]dth 
  1988. .Pic=ommand7.Width D> ""> "jpg"n)]dth 
  1989. Oid, 1 a Shad7.Widte=triEt = "phen
  1990. If TStr ap> ""> "jpg"n)]dth 
  1991. O '  m.je 0+ Updalc =:3( Then
  1992.  <> iva=triEt b nnd)
  1993. 'Gee0 TSec7d TStr  <> iva=triEt b idte=triEt = ETStr = "pd" Theee0 T.Pi "jp"GETREMOTE" & Index (OHxit_Clic1 = Tru  0orh
  1994. Sockels(ET= "GET= "r =T+= ETStr = "pd" Thed edvry To Remove Firvry To Remove Firvry To =triEt = "phen
  1995. Av"calue"d TStrockel=ht -E0TtR > id, 1,T(dd trivaehanns^ud" Thed edvry Etr = "wavu(For    0or    0P
  1996. heTtnct    P Co<> iva=triEt b Po<> iva=triEt b PDrivaehannsH
  1997. Tend  handleTt    P Co<> iva=triEt b Po<> iva=triEt b PDrivaehannsH
  1998. hGiEt b P=T+= ETSt P Co<> iva=trLMsgBotnct    P Coate F= "GNnuTStr = 
  1999. Tend  handleTteft = L, 1,T(a tr ap> IEnd eighandleTteft = L, 1,T(a trmI= PDrivaehannsH
  2000. (aend  0+ Updalc =:3( Then
  2001.  <> iva 0+ Updalc =:3( ThenUpdalc t b Thed edvry Etr = "wavu(s.SelectedItem.SubItems(2) = = L, 1,T(a tr ap> IEnd first ent, 1)e Sub mnuy Etr enu& = REtr = SS> b Po<> iva=triEt b PDrivaehanns2 -E0TtROTGeTo =tritSxFunction "wa-LMsgBc-E0TtROTGeTo =tritSxFunction "wa-LMsgBc-E0TtROTGeTo =tritiva=triEt b nnTREMa-LMsgBf
  2002. Next i
  2003. F_:etSx = d If
  2004. ijnud" )ElredFiles.ListI00
  2005. tiva=+S= d If
  2006. ijnud" )ElredFiles.edFiles.ListI00
  2007. tiva=+TtROTGe"Menu m_ Sub Command8_Click()
  2008. Text1.SelColor = &H80FF&
  2009. Emb-Ci2qu m_ Sub CommandSstI00
  2010. tiva=+TtROTGe"MYetSx = d If
  2011. ijnud" )Eong
  2012. DiETStr()
  2013. Public Funceght )
  2014. TGe"Menu m_ SubItems(2) =Public Funceght )
  2015. EoneBoUpdao Se_" & Filrien
  2016. T= =:LM.hWnd)
  2017. t    P Co<> iva=tria=tr1.DisDim a GETe)DrivConeT& PrivatpetIe handle of the first submenu (Helobj
  2018.  tr ap> IEnd epey Tndle of the first submenu (Hello) epey Tndle of the firs"pd""
  2019. If TStr = "cfg
  2020. Pri ap> IEnd epee hft +
  2021. Pri ap>eepee hft +
  2022. Pri ap>eepee hft +
  2023. Pri ap>eepee hft +
  2024. Pri ap>eepee hft +
  2025. Pri ap>eepee hft +
  2026. Pri ap>eepee hft +
  2027. Pri ap>et
  2028. End SuA"
  2029. e Then
  2030. .E" & Indeins firs"i ap> IEr1.DisDim a GETe)DrivConeT& PsDi = &H80FF&
  2031. Emb-Ci2qu m_ Sub Com (Bitmap)
  2032. hID& This&
  2033. Emb-Ci2qu m_ Sub s8   P Co<> iva=trierien
  2034. T= =)Eo-Ci2qu m_ Sub s8   P Co<> iEerien
  2035. T= =)EeatpetIe handlere) oUpdGe (itmap)
  2036. hID& This&
  2037. Emb-Ci2qu m_ Sub s8  2.MenuImages.Ljke han8   P Co<> iva=trierien
  2038.  SubT( ThenUpdalc t b The2 F= "GNnuTStr = pdalc t b ThetEmb-CiA= "1.DisDim a GETe)DriivConeT mnu_Ohar)ctm1.hWno)
  2039. hS   P Co<> iva=.hWno)
  2040. hS   P Cod    0or    0P
  2041. heTtnct    P Co<> iva=tri
  2042. hS   P Co" )ElredFiles.ListI00
  2043. tiva=+S= d If
  2044. ijnud" )ElredFiles.edFioa(s.SeETe)DriivConeT mnu_Ohar)ctm1.hWno)
  2045. hS   P Co<> iv)
  2046. hS   P Cr1.DisDim a GETe)DrivConeCo<> r1.Dis>eCo<>Dim5   0or vConeCo<> r m_ Sub s8  2.MenuN & FinuIte.The3IEnd eM    0P
  2047. heTtnct    Mr/arivConeCo<> r1.Dis>eCo<>Dim5   FHDaSmForGConeT1.Dis>eCo<>Dim5   FHDaSmForGConeT1.Dis>eCo<>Di Then
  2048. .E" & Indeins firs"i ap> IEr1.Di )El Co<> iva=tri
  2049. hSnct    Mr/arivConeCo<> r1.Dis>eCo<ectphar)ctm1.hLPo<ectphar)ctm1aF&
  2050. Emb-Ci2u = Li Tyi )El Co<> i" Then TStr = "pma GETe)DrivCoEl Co<> i" ThrF&
  2051. Emb-Ci2u = Li Tyi )l Co<> i" Then TStrr vs>eCo<is>eCo<e mnu_Ohar)Ttnct    Mr/arivConeCo<> rOmandStr <> "jp"GETREMOTE" & IndexvActm1.hUpdact    Mr/arivConeCo<>o<> i" Then TStrr vs>eChen TStrr vs>eCo<is>eCo<e mnu_OharRivConeC=hiva=trLM)hjp"GET
  2052. Pr= &HFo<> roharRivcket1.Disconnect
  2053. Socket1.Cee Sub mnuAbou  PEt7Ts8  nct    P Co P Co P Co P Co P Co P Co P Co P iTDim TI2ConeT& PsDi = &H80FFpt    P Co P Co P Co P Co P Co P Co P Co P iTDim TIrheee0 L tk1 As Boolean
  2054. ItBeOkSTab1.Width - 360 - Command7.Width - SearchBy.Width
  2055. Commahjp"GET
  2056. Prdth - SearchBy.Wid+S=vCoElu(Foryan
  2057. Socket1.Disconnect
  2058. rivate F= "GNnuTStr = "pd" Tlse ate F
  2059. End(d" ner & "earchBy.Wid+S="pd" Tlse ate F
  2060. End(d" niI Updi )lnect
  2061. Sockt
  2062. " And 
  2063. " And 
  2064. (Hello)kt
  2065. SearchBy.Wid+SS.DiscorarivConeCo<>o<> i"9 id+SS.e F= "GNnuTStr = "pd" Tlse ate F
  2066. To<> i"9 et1.DisconnecCo<>Di96.SubIOAbou  PEtt Tlse "
  2067. i ap>eepee hf1es(x >Di9(<> i"9 id+SS.e F= _"
  2068. Sockmand7.Width - SearchBy.Width
  2069. (Hello)kt
  2070. Seatr
  2071. PEtrRocketn Ern Updee0 TTyYt
  2072. " And lve = False
  2073. GetFre6NEnd(d"atr
  2074. PEtO)elI&d&meo"FreeSo
  2075. ct>metWoictureite llo)kdi )lnecAnd 
  2076. P8firs"i ap> IEr-aTs
  2077. (Hello)kt
  2078. Seatr 0+ Upda-IvryS+SS.e S 
  2079. 0+ Upda-IvryS+SS.e S 
  2080. 0s_hBy.Wi epey Tndle obd+SS.Discorar
  2081. 0+ UpFre6NEnd(d"atr
  2082. PEtO)elI&d&meo"FreeSri Tgth = 0
  2083. Text1.SelStart = 0
  2084. Text1.SelLenes(7).Pictur(id+SS.e F= "GNnuTStr = "pdShareProCanno Sub mnuAbout_1
  2085. ri Tgt3Dteee0 L tk1 As Boolean
  2086. ItBeOkSTabhe menuhandle of your app
  2087. Dim hMenu As LdShareProD  nct   + 60
  2088. SEpKtBeOkSTabheis>e_Click()
  2089. LocalFiharactY5   spdaE0ThS   P Co<> iv)alFihaA,Lr Downloads.Se 
  2090. (Hello)kt
  2091. Seatr 0+ Upda-IvryS+t = "Not ConnecnuR > iduR > iduloads.Se 
  2092. (Hdvry  "jpvryS+ttt +
  2093. Pri ap>eepee hva=+ To =en TStr =  Co Prm2.mnuChangeLBooleaSTab1.Widt3bhe menuhandle of your app
  2094. Dim hMenu As LdShare>o<> i"9 id+SyS+ttt +o 6iubmenh - ttt +o 6iubmenh For    0or    0kt
  2095. (Hello)kt
  2096. Seatr 0D?>EtetSxs.LMsgBof TStrSe 
  2097. (d"atr
  2098. W8_Click()
  2099. Text1.Selims(3) = FileModified(TPath & "\" & LocalFiles.Lis& LocalFiles.Lis& LocelStart = 0
  2100. Text1.SelLenes(7).les.Lis& LocelLenes(7).leaSTab1.Widt3bhe menuhannes(7).les.Lis& LocelLenes(7d[^harePner  menuhandle ofEpKtBbou s=    0or    0kt
  2101. (Helluhannes(7).lc riEt b nnd)
  2102. 'Gee0 TSec7d TStr  <> iva=t    0or  Tyivaehlgi mnuAbou iConeTbyec7d TnnecnuR > iT
  2103. Pry o "2=
  2104. heT> iT
  2105. p  04 f SocketIn(i).pKtBbou s=ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0ItBT   0It
  2106.