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

📄

📁 情书生成器源代码
💻
字号:
VERSION 5.00
Begin VB.Form Day 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "情书生成器"
   ClientHeight    =   2670
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4215
   Icon            =   "情书生成器Day.frx":0000
   LinkTopic       =   "Form10"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "情书生成器Day.frx":030A
   ScaleHeight     =   2670
   ScaleWidth      =   4215
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   1755
      Top             =   2250
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   1935
      TabIndex        =   3
      Top             =   1433
      Width           =   2145
   End
   Begin VB.OptionButton Option3 
      BackColor       =   &H00EBC792&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   1665
      TabIndex        =   2
      Top             =   1530
      Width           =   195
   End
   Begin VB.OptionButton Option2 
      BackColor       =   &H00EBC792&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   1665
      TabIndex        =   1
      Top             =   900
      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            =   1665
      TabIndex        =   0
      Top             =   270
      Width           =   195
   End
   Begin VB.CommandButton Command2 
      Caption         =   "不用修改"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   2790
      TabIndex        =   5
      Top             =   2250
      Width           =   1230
   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
      Left            =   180
      TabIndex        =   4
      Top             =   2250
      Width           =   1320
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00808080&
      BorderStyle     =   6  'Inside Solid
      Index           =   1
      X1              =   90
      X2              =   4140
      Y1              =   2115
      Y2              =   2115
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      Index           =   0
      X1              =   135
      X2              =   4140
      Y1              =   2115
      Y2              =   2115
   End
   Begin VB.Label Label5 
      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        =   10
      Top             =   1530
      Width           =   1470
   End
   Begin VB.Label Label4 
      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        =   9
      Top             =   900
      Width           =   1470
   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        =   8
      Top             =   270
      Width           =   1470
   End
   Begin VB.Label Label2 
      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          =   300
      Left            =   1935
      TabIndex        =   7
      Top             =   825
      Width           =   2145
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      BorderStyle     =   1  'Fixed Single
      Caption         =   "我不需要日期生成"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   1935
      TabIndex        =   6
      Top             =   195
      Width           =   2145
   End
   Begin VB.Menu mnuAbout 
      Caption         =   "a"
      Visible         =   0   'False
      Begin VB.Menu mnuAubot1 
         Caption         =   "关于(&A)..."
      End
   End
End
Attribute VB_Name = "Day"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If Option1.Value = True Then
    textG = False
    textH = Text1.Text
ElseIf Option2.Value = True Then
    textG = True
    textL = True
    textH = Text1.Text
Else
    textG = True
    textL = False
    textH = Text1.Text
End If
Unload Me
Form9.Show
End Sub

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

Private Sub Command2_Click()
Unload Me
Form9.Show
End Sub

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

Private Sub Form_Load()
If textG = True Then
    If textL = False Then
        Option3.Value = True
    Else
        Option2.Value = True
    End If
Else
    Option1.Value = True
End If
Text1.Text = textH
If Text1.Text = "" Then Text1.Text = "一个想你的夜晚"
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)
Day.Show
Label1.FontBold = False
label2.FontBold = False
label3.FontBold = False
Label4.FontBold = False
Label5.FontBold = False
Text1.FontBold = False
Command1.FontBold = False
Command2.FontBold = False
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()
Option2.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()
Option1.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 Label4_Click()
Option2.Value = True
End Sub

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

Private Sub Label5_Click()
Option3.Value = True
End Sub

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


Private Sub mnuAubot1_Click()
frmAbout.Show
End Sub

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

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

Private Sub Option3_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()
label2.Caption = " " & CStr(Now)
End Sub

⌨️ 快捷键说明

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