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

📄 form1.frm

📁 双色球,七星彩随机生成号码程序,生成后可以打印,一次生成五组,刚好10块钱的彩票
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Height          =   270
      Index           =   1
      Left            =   960
      TabIndex        =   10
      Top             =   720
      Width           =   495
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   0
      Left            =   240
      TabIndex        =   9
      Top             =   720
      Width           =   495
   End
   Begin VB.CommandButton Command1 
      Caption         =   "双色球"
      Height          =   375
      Left            =   960
      TabIndex        =   0
      Top             =   2640
      Width           =   975
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FF0000&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   6
      Left            =   4560
      TabIndex        =   8
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   5
      Left            =   3840
      TabIndex        =   7
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   4
      Left            =   3120
      TabIndex        =   6
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   3
      Left            =   2400
      TabIndex        =   5
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   2
      Left            =   1680
      TabIndex        =   4
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   1
      Left            =   960
      TabIndex        =   3
      Top             =   240
      Width           =   495
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H000000FF&
      ForeColor       =   &H00FFFFFF&
      Height          =   270
      Index           =   0
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   495
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i

Private Sub Command1_Click()
Randomize
S0:
For x = 0 To 5
S1:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S1
    i = i & Int(10 * Rnd)
    If i > 33 Or i <= 0 Then GoTo S1
    Text1(x).Text = i
Next x
For x = 0 To 4
    If Text1(0).Text = Text1(x + 1).Text Then GoTo S0
Next x
For x = 1 To 4
    If Text1(1).Text = Text1(x + 1).Text Then GoTo S0
Next x
For x = 2 To 4
    If Text1(2).Text = Text1(x + 1).Text Then GoTo S0
Next x
For x = 3 To 4
    If Text1(3).Text = Text1(x + 1).Text Then GoTo S0
Next x
For x = 4 To 4
    If Text1(4).Text = Text1(x + 1).Text Then GoTo S0
Next x

S2:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S2
    i = i & Int(10 * Rnd)
    If i > 16 Or i <= 0 Then GoTo S2
    Text1(6).Text = i


S3:
For x = 0 To 5
S4:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S4
    i = i & Int(10 * Rnd)
    If i > 33 Or i <= 0 Then GoTo S4
    Text2(x).Text = i
Next x
For x = 0 To 4
    If Text2(0).Text = Text2(x + 1).Text Then GoTo S3
Next x
For x = 1 To 4
    If Text2(1).Text = Text2(x + 1).Text Then GoTo S3
Next x
For x = 2 To 4
    If Text2(2).Text = Text2(x + 1).Text Then GoTo S3
Next x
For x = 3 To 4
    If Text2(3).Text = Text2(x + 1).Text Then GoTo S3
Next x
For x = 4 To 4
    If Text2(4).Text = Text2(x + 1).Text Then GoTo S3
Next x

S5:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S5
    i = i & Int(10 * Rnd)
    If i > 16 Or i <= 0 Then GoTo S5
    Text2(6).Text = i


S6:
For x = 0 To 5
S7:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S7
    i = i & Int(10 * Rnd)
    If i > 33 Or i <= 0 Then GoTo S7
    Text3(x).Text = i
Next x
For x = 0 To 4
    If Text3(0).Text = Text3(x + 1).Text Then GoTo S6
Next x
For x = 1 To 4
    If Text3(1).Text = Text3(x + 1).Text Then GoTo S6
Next x
For x = 2 To 4
    If Text3(2).Text = Text3(x + 1).Text Then GoTo S6
Next x
For x = 3 To 4
    If Text3(3).Text = Text3(x + 1).Text Then GoTo S6
Next x
For x = 4 To 4
    If Text3(4).Text = Text3(x + 1).Text Then GoTo S6
Next x

S8:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo S8
    i = i & Int(10 * Rnd)
    If i > 16 Or i <= 0 Then GoTo S8
    Text3(6).Text = i
    

s9:
For x = 0 To 5
s10:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo s10
    i = i & Int(10 * Rnd)
    If i > 33 Or i <= 0 Then GoTo s10
    Text4(x).Text = i
Next x
For x = 0 To 4
    If Text4(0).Text = Text4(x + 1).Text Then GoTo s9
Next x
For x = 1 To 4
    If Text4(1).Text = Text4(x + 1).Text Then GoTo s9
Next x
For x = 2 To 4
    If Text4(2).Text = Text4(x + 1).Text Then GoTo s9
Next x
For x = 3 To 4
    If Text4(3).Text = Text4(x + 1).Text Then GoTo s9
Next x
For x = 4 To 4
    If Text4(4).Text = Text4(x + 1).Text Then GoTo s9
Next x

s11:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo s11
    i = i & Int(10 * Rnd)
    If i > 16 Or i <= 0 Then GoTo s11
    Text4(6).Text = i


s12:
For x = 0 To 5
s13:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo s13
    i = i & Int(10 * Rnd)
    If i > 33 Or i <= 0 Then GoTo s13
    Text5(x).Text = i
Next x
For x = 0 To 4
    If Text5(0).Text = Text5(x + 1).Text Then GoTo s12
Next x
For x = 1 To 4
    If Text5(1).Text = Text5(x + 1).Text Then GoTo s12
Next x
For x = 2 To 4
    If Text5(2).Text = Text5(x + 1).Text Then GoTo s12
Next x
For x = 3 To 4
    If Text5(3).Text = Text5(x + 1).Text Then GoTo s12
Next x
For x = 4 To 4
    If Text5(4).Text = Text5(x + 1).Text Then GoTo s12
Next x

s14:
    i = Int(10 * Rnd)
    If i > 3 Or i < 0 Then GoTo s14
    i = i & Int(10 * Rnd)
    If i > 16 Or i <= 0 Then GoTo s14
    Text5(6).Text = i
End Sub

Private Sub Command2_Click()
Randomize
For i = 0 To 6
    Text1(i).Text = Int(10 * Rnd)
Next i
For i = 0 To 6
    Text2(i).Text = Int(10 * Rnd)
Next i
For i = 0 To 6
    Text3(i).Text = Int(10 * Rnd)
Next i
For i = 0 To 6
    Text4(i).Text = Int(10 * Rnd)
Next i
For i = 0 To 6
    Text5(i).Text = Int(10 * Rnd)
Next i
End Sub

Private Sub Command3_Click()
Me.PrintForm
End Sub

⌨️ 快捷键说明

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