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

📄 情书生成器8.frm

📁 Vb写得情书生成器源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form8 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "情书生成器"
   ClientHeight    =   1980
   ClientLeft      =   4485
   ClientTop       =   2790
   ClientWidth     =   3555
   Icon            =   "情书生成器8.frx":0000
   LinkTopic       =   "Form8"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "情书生成器8.frx":030A
   ScaleHeight     =   1980
   ScaleWidth      =   3555
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   1665
      Top             =   1350
   End
   Begin VB.TextBox Text1 
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1440
      TabIndex        =   2
      Text            =   "一个想你的夜晚"
      Top             =   720
      Width           =   1995
   End
   Begin VB.OptionButton Option2 
      BackColor       =   &H00E7BB7A&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   1215
      TabIndex        =   1
      Top             =   810
      Width           =   195
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00E7BB7A&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   1215
      TabIndex        =   0
      Top             =   270
      Value           =   -1  'True
      Width           =   195
   End
   Begin VB.CommandButton Command1 
      Caption         =   "最后步"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Index           =   1
      Left            =   2385
      TabIndex        =   3
      Top             =   1530
      Width           =   870
   End
   Begin VB.CommandButton Command1 
      Caption         =   "上一步"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Index           =   0
      Left            =   540
      TabIndex        =   4
      Top             =   1530
      Width           =   870
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00808080&
      BorderStyle     =   6  'Inside Solid
      Index           =   1
      X1              =   45
      X2              =   3375
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      Index           =   0
      X1              =   90
      X2              =   3375
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "自定义日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   90
      TabIndex        =   7
      Top             =   765
      Width           =   1050
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "当前的日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   90
      TabIndex        =   6
      Top             =   270
      Width           =   1050
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      BorderStyle     =   1  'Fixed Single
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   1440
      TabIndex        =   5
      Top             =   225
      Width           =   2010
   End
   Begin VB.Menu mnuAbout 
      Caption         =   "a"
      Visible         =   0   'False
      Begin VB.Menu mnuAbout1 
         Caption         =   "关于(&A)..."
      End
   End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim exitnext As Boolean
Private Sub Command1_Click(Index As Integer)
exitnext = False
LoadFrom9 = True
If Option1.Value = True Then
    textL = True
    textH = Text1.Text
Else
    textH = Text1.Text
    textL = False
End If
commandH = True
Unload Me
If Index = 1 Then
    Form9.Show
    LoadStop1 = True
    loadDayture = False
Else
    Form7.Show
End If
End Sub

Private Sub Command1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index = 0 Then
    Command1(0).FontBold = True
Else
    Command1(1).FontBold = True
End If
End Sub

Private Sub Form_Load()
exitnext = True
If commandH = True Then
    If textL = True Then
        Option1.Value = True
        Text1.Text = textH
    Else
        Option2.Value = True
        Text1.Text = textH
    End If
End If
End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
    PopupMenu mnuAbout, vbPopupMenuRightButton
End If
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form8.Show
Command1(0).FontBold = False
Command1(1).FontBold = False
Label1.FontBold = False
label2.FontBold = False
label3.FontBold = False
Text1.FontBold = False
End Sub

Private Sub Form_Unload(Cancel As Integer)
If exitnext = True Then
    Dim msg As Integer
    msg = MsgBox("您确定要退出本程序吗?", 1 + 32, "确认")
    If msg = 1 Then
        Cancel = 0
    Else
        Cancel = 1
    End If
Else
End If
End Sub

Private Sub Label1_Click()
Option1.Value = True
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.FontBold = True
End Sub

Private Sub Label2_Click()
Option1.Value = True
End Sub

Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
label2.FontBold = True
End Sub

Private Sub Label3_Click()
Option2.Value = True
End Sub

Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
label3.FontBold = True
End Sub

Private Sub mnuAbout1_Click()
frmAbout.Show
End Sub

Private Sub Option1_Click()
Text1.Enabled = False
End Sub

Private Sub Option2_Click()
Text1.Enabled = True
End Sub

Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.FontBold = True
End Sub

Private Sub Timer1_Timer()
Label1.Caption = " " & CStr(Now)
If Option2.Value = True And Text1.Text = "" Then
    Command1(1).Enabled = False
Else
    Command1(1).Enabled = True
End If
End Sub

⌨️ 快捷键说明

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