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

📄 form1.frm

📁 这是一个彩票程序
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "神彩"
   ClientHeight    =   6660
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6030
   ForeColor       =   &H000000FF&
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   6660
   ScaleWidth      =   6030
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame3 
      Caption         =   "开奖历史数据"
      ForeColor       =   &H00004080&
      Height          =   1575
      Left            =   360
      TabIndex        =   15
      Top             =   4440
      Width           =   5295
      Begin VB.CheckBox Check1 
         BackColor       =   &H00C0FFFF&
         Caption         =   "修改"
         Height          =   255
         Left            =   120
         TabIndex        =   19
         Top             =   840
         Width           =   735
      End
      Begin VB.CommandButton Command3 
         BackColor       =   &H00C0FFC0&
         Caption         =   "保 存"
         Enabled         =   0   'False
         Height          =   255
         Left            =   120
         Style           =   1  'Graphical
         TabIndex        =   18
         Top             =   1200
         Width           =   615
      End
      Begin VB.TextBox Text2 
         Appearance      =   0  'Flat
         BackColor       =   &H00C0FFFF&
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800080&
         Height          =   1095
         Left            =   1200
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   17
         Top             =   240
         Width           =   3855
      End
      Begin VB.CommandButton Command5 
         BackColor       =   &H00C0FFC0&
         Caption         =   "查 看"
         Height          =   255
         Left            =   120
         Style           =   1  'Graphical
         TabIndex        =   16
         Top             =   360
         Width           =   615
      End
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   2760
      Top             =   1200
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command4 
      BackColor       =   &H00C0FFC0&
      Caption         =   "退  出"
      Height          =   375
      Left            =   4320
      Style           =   1  'Graphical
      TabIndex        =   14
      Top             =   6120
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00C0FFC0&
      Caption         =   "计算号码"
      Height          =   375
      Left            =   480
      Style           =   1  'Graphical
      TabIndex        =   13
      Top             =   6120
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "计算区"
      ForeColor       =   &H00FF00FF&
      Height          =   3015
      Left            =   3240
      TabIndex        =   2
      Top             =   1080
      Width           =   2415
      Begin VB.Label Label10 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   375
         Left            =   360
         TabIndex        =   12
         ToolTipText     =   "可与""分析""首位号码相参考"
         Top             =   2160
         Width           =   1575
      End
      Begin VB.Label Label9 
         Caption         =   "分析选号"
         ForeColor       =   &H000040C0&
         Height          =   255
         Left            =   120
         TabIndex        =   11
         Top             =   1680
         Width           =   735
      End
      Begin VB.Label Label8 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   375
         Left            =   360
         TabIndex        =   10
         Top             =   840
         Width           =   1455
      End
      Begin VB.Label Label7 
         Caption         =   "随机选号"
         ForeColor       =   &H000040C0&
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "分析区"
      ForeColor       =   &H00FF00FF&
      Height          =   3015
      Left            =   360
      TabIndex        =   1
      Top             =   1080
      Width           =   2415
      Begin VB.CommandButton Command1 
         BackColor       =   &H00C0FFC0&
         Caption         =   "分 析"
         Height          =   375
         Left            =   480
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   1560
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         Height          =   495
         Left            =   240
         MaxLength       =   7
         TabIndex        =   4
         Top             =   840
         Width           =   1935
      End
      Begin VB.Label Label6 
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   1560
         TabIndex        =   8
         Top             =   2520
         Width           =   615
      End
      Begin VB.Label Label4 
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   2520
         Width           =   735
      End
      Begin VB.Label Label3 
         Caption         =   "下期首位"
         ForeColor       =   &H000040C0&
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   2160
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "上期数据"
         ForeColor       =   &H000040C0&
         Height          =   255
         Left            =   720
         TabIndex        =   3
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H00C0FFC0&
      BackStyle       =   0  'Transparent
      Caption         =   "我 思 故 我 在"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   26.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00800000&
      Height          =   525
      Left            =   1080
      TabIndex        =   0
      Top             =   240
      Width           =   3780
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Dim m As Integer, n As Integer

Dim a As Integer, b As Integer

Dim s As String

If Text1.Text = "" Then
           MsgBox ("请输入上期号码")
           Text1.SetFocus
           
End If
s = Text1.Text
m = Val(Mid(s, 1, 1))
n = Val(Mid(s, 7, 1))



Randomize m

a = Rnd * 9


Randomize n

b = Rnd * 9

Label4.Caption = a
Label6.Caption = b

End Sub

Private Sub Command2_Click()
Dim a As Integer, b As Integer, c As Integer, d As Integer, e As Integer, f As Integer, g As Integer
Dim a1 As Integer, b1 As Integer, c1 As Integer, d1 As Integer, e1 As Integer, f1 As Integer, g1 As Integer, s As String

Dim a11 As Integer, b11 As Integer, c11 As Integer, d11 As Integer, e11 As Integer, f11 As Integer, g11 As Integer
Dim i As Long


On Error GoTo 1

Randomize Timer
a = Rnd * 9
b = Rnd * 9
c = Rnd * 9
d = Rnd * 9
e = Rnd * 9
f = Rnd * 9
g = Rnd * 9
Label8.Caption = a & b & c & d & e & f & g

If Text1.Text = "" Then MsgBox ("请输入上期数椐")


s = Text1.Text

a1 = Val(Mid(s, 1, 1))
b1 = Val(Mid(s, 2, 1))

c1 = Val(Mid(s, 3, 1))
d1 = Val(Mid(s, 4, 1))
e1 = Val(Mid(s, 5, 1))
f1 = Val(Mid(s, 6, 1))
g1 = Val(Mid(s, 7, 1))

For i = 1 To 10000000
i = i + 1

Randomize a1
a11 = Rnd * 9

Randomize b1
b11 = Rnd * 9
Randomize c1
c11 = Rnd * 9
Randomize d1
d11 = Rnd * 9
Randomize e1
e11 = Rnd * 9
Randomize f1
f11 = Rnd * 9
Randomize g1
g11 = Rnd * 9

 Next i
Label10.Caption = a11 & b11 & c11 & d11 & e11 & f11 & g11



1



End Sub

Private Sub Command3_Click()
On Error GoTo 1


CommonDialog1.Filter = "文本文件(*.txt)|*.txt"
CommonDialog1.ShowSave
ss = CommonDialog1.FileName
Open ss For Output As #1


Print #1, LTrim(Text2.Text)


Close #1



1

End Sub

Private Sub Command4_Click()
Unload Me

End Sub

Private Sub Command5_Click()
Dim str As String

On Error GoTo 1
Text2.Text = ""

CommonDialog1.Filter = "文本文件(*.txt)|*.txt"
CommonDialog1.ShowOpen

ss = CommonDialog1.FileName

Open ss For Input As #1

str = ""
Text2.Text = ""


Do While Not EOF(1)
 Line Input #1, str
 
 Text2.Text = LTrim(Text2.Text + str + Chr(13) + Chr(13))
 
 
 Loop

 

Close #1
1


End Sub

Private Sub check1_Click()


If Check1.Value = 1 Then
Command3.Enabled = True
Text2.Enabled = True

Else
Command3.Enabled = False
Text2.Enabled = False

End If


End Sub

⌨️ 快捷键说明

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