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

📄 baocun.frm

📁 教学资源管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form baocun 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "保存查找"
   ClientHeight    =   2190
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4680
   Icon            =   "baocun.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2190
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   1560
      TabIndex        =   2
      Top             =   1560
      Width           =   1095
   End
   Begin VB.TextBox txtbao 
      Appearance      =   0  'Flat
      Height          =   270
      Left            =   360
      TabIndex        =   1
      Top             =   840
      Width           =   3975
   End
   Begin VB.Label Label1 
      Caption         =   "请输入一个名称,该名称将在查找菜单下显示出来。"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   4335
   End
End
Attribute VB_Name = "baocun"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public sql As String
Private Sub Command1_Click()
If Trim(txtbao.Text) = "" Then
    MsgBox "名称不能为空!", , "提示"
Else
    con.Open
    Dim Mysql As String
    Mysql = "select * from sys"
    rs.Open Mysql, con, adOpenKeyset, adLockPessimistic
    rs.AddNew
    rs("setname") = "Find"
    rs("setvalue") = txtbao.Text
    rs("setvalue2") = sql
    rs.Update
    rs.Close
    con.Close
    fMainForm.FindNumber = fMainForm.FindNumber + 1
    Load fMainForm.mnuMyFind(fMainForm.FindNumber)
    fMainForm.mnuMyFind(fMainForm.FindNumber).Caption = txtbao.Text
    fMainForm.mnuMyFind(fMainForm.FindNumber).Enabled = True
    fMainForm.setFindSQl fMainForm.FindNumber, sql
    Unload Me
End If
End Sub

⌨️ 快捷键说明

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