⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news1.frm

📁 读取新闻组(newsgroup)信息的程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{6A9B1CE0-5734-11CF-B86B-444553540000}#1.0#0"; "UUEUUD.OCX"
Begin VB.Form Form1 
   Caption         =   "R&D's Simple News Reader"
   ClientHeight    =   7695
   ClientLeft      =   165
   ClientTop       =   735
   ClientWidth     =   9810
   LinkTopic       =   "Form1"
   ScaleHeight     =   7695
   ScaleWidth      =   9810
   StartUpPosition =   3  'Windows Default
   Tag             =   "Written by Randol Tigrett - rtigrett@wac.com"
   Begin UUEUUDLib.UUeUUd UUeUUd1 
      Left            =   4680
      Top             =   6720
      _Version        =   65536
      _ExtentX        =   800
      _ExtentY        =   800
      _StockProps     =   0
      InputFile       =   ""
      OutputFile      =   ""
      Buffer          =   ""
   End
   Begin VB.CommandButton Command7 
      Caption         =   "Quit"
      Height          =   375
      Left            =   2880
      TabIndex        =   10
      Top             =   6600
      Width           =   855
   End
   Begin VB.CommandButton Command6 
      Caption         =   "Local List"
      Height          =   375
      Left            =   8400
      TabIndex        =   9
      Top             =   1080
      Width           =   975
   End
   Begin VB.CommandButton Command5 
      Caption         =   "Save List"
      Height          =   375
      Left            =   8400
      TabIndex        =   8
      Top             =   1560
      Width           =   975
   End
   Begin VB.Timer Timer1 
      Interval        =   60000
      Left            =   9360
      Top             =   6960
   End
   Begin VB.CommandButton Command4 
      Caption         =   "Server List"
      Height          =   375
      Left            =   8400
      TabIndex        =   7
      Top             =   600
      Width           =   975
   End
   Begin VB.CommandButton Command3 
      Caption         =   "List Group"
      Height          =   375
      Left            =   8400
      TabIndex        =   5
      Top             =   2040
      Width           =   975
   End
   Begin TabDlg.SSTab SSTab1 
      Height          =   4695
      Left            =   0
      TabIndex        =   4
      Top             =   120
      Width           =   9645
      _ExtentX        =   17013
      _ExtentY        =   8281
      _Version        =   327681
      Tab             =   1
      TabHeight       =   520
      TabCaption(0)   =   "Server List"
      TabPicture(0)   =   "news1.frx":0000
      Tab(0).ControlEnabled=   0   'False
      Tab(0).Control(0)=   "List1"
      Tab(0).ControlCount=   1
      TabCaption(1)   =   "Group Headers"
      TabPicture(1)   =   "news1.frx":001C
      Tab(1).ControlEnabled=   -1  'True
      Tab(1).Control(0)=   "List2"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "Text2"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).ControlCount=   2
      TabCaption(2)   =   "Decoded Pictures"
      TabPicture(2)   =   "news1.frx":0038
      Tab(2).ControlEnabled=   0   'False
      Tab(2).ControlCount=   0
      Begin VB.TextBox Text2 
         Height          =   1935
         Left            =   120
         MultiLine       =   -1  'True
         ScrollBars      =   3  'Both
         TabIndex        =   12
         Top             =   2520
         Width           =   9375
      End
      Begin VB.ListBox List2 
         Height          =   1815
         ItemData        =   "news1.frx":0054
         Left            =   120
         List            =   "news1.frx":0056
         TabIndex        =   11
         Top             =   480
         Width           =   9375
      End
      Begin VB.ListBox List1 
         Height          =   3570
         ItemData        =   "news1.frx":0058
         Left            =   -74880
         List            =   "news1.frx":005A
         MousePointer    =   2  'Cross
         Sorted          =   -1  'True
         TabIndex        =   6
         Top             =   600
         Width           =   8175
      End
   End
   Begin VB.TextBox Text1 
      Height          =   1335
      Left            =   0
      MultiLine       =   -1  'True
      TabIndex        =   3
      Top             =   5040
      Width           =   8295
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Disconnect"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   6600
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Connect"
      Height          =   375
      Left            =   840
      TabIndex        =   1
      Top             =   6600
      Width           =   855
   End
   Begin ComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   0
      Top             =   7320
      Width           =   9810
      _ExtentX        =   17304
      _ExtentY        =   661
      Style           =   1
      SimpleText      =   ""
      _Version        =   327682
      BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7} 
         NumPanels       =   1
         BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
         EndProperty
      EndProperty
   End
   Begin MSWinsockLib.Winsock Winsock1 
      Left            =   120
      Top             =   6600
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   327681
      RemotePort      =   119
   End
   Begin VB.Menu Options 
      Caption         =   "Options"
      Begin VB.Menu ServerName 
         Caption         =   "&Server Name"
      End
   End
   Begin VB.Menu aboutMnu 
      Caption         =   "&About"
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub aboutMnu_Click()
   MsgBox "R&D's Consulting Simple News Reader" & Chr$(13) & Chr$(10) & "E-Mail rtigrett@wac.com", vbInformation, "News Reader"
End Sub

Private Sub Command1_Click()
   If ConnectServer = False Then
      If NewsServerName & "." = "." Then
         Form2.Show
      Else
         Winsock1.Close
         Winsock1.RemoteHost = NewsServerName
         Winsock1.RemotePort = 119
         StatusBar1.SimpleText = "Connecting to " & NewsServerName
         Winsock1.Connect
      End If
   Else
      StatusBar1.SimpleText = "Already connected : " & NewsServerName
   End If
End Sub

Private Sub Command2_Click()
   Dim QuitNews As String
   If ConnectServer = True Then
      QuitNews = "QUIT" & Chr$(13) & Chr$(10)
      Winsock1.SendData QuitNews
      Winsock1.Close
      ConnectServer = False
   End If
End Sub


Private Sub Command3_Click()
   Dim SendGroup As String
   If ConnectServer = True Then
      Debug.Print List1
      SSTab1.Tab = 1
      SendGroup = "GROUP " & List1 & Chr$(13) & Chr$(10)
      CommandString = "GROUP"
      Winsock1.SendData SendGroup
   Else
      StatusBar1.SimpleText = "Must Connect to News Server"
   End If

End Sub

Private Sub Command4_Click()
   Dim SendList As String
   If ConnectServer = True Then
      'Timer1.Enabled = True
      SendList = "LIST" & Chr$(13) & Chr$(10)
      CommandString = "LIST"
      Winsock1.SendData SendList
   Else
      StatusBar1.SimpleText = "Must Connect to News Server"
   End If

End Sub

Private Sub Command5_Click()
   Dim Reps, i  As Long
   If ConnectServer = True Then
      If CommandString = "LIST" Then
         StatusBar1.SimpleText = "Can Not save List Until, Server Lists Ends"
      Else
         Open "Server.lst" For Output As #1
         Reps = List1.ListCount
         For i = 1 To Reps Step 1
            Print #1, List1.List(i)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -