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

📄 商品信息.frm

📁 此为库存管理系统!使用了VB开发工具开发
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form19 
   BackColor       =   &H00808080&
   Caption         =   "商品信息修改"
   ClientHeight    =   3465
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   4680
   LinkTopic       =   "Form19"
   ScaleHeight     =   3465
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      BackColor       =   &H00808080&
      Caption         =   "取消"
      Height          =   375
      Left            =   2760
      Style           =   1  'Graphical
      TabIndex        =   9
      Top             =   3000
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00808080&
      Caption         =   "修改"
      Height          =   375
      Left            =   600
      Style           =   1  'Graphical
      TabIndex        =   8
      Top             =   3000
      Width           =   855
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   1920
      TabIndex        =   7
      Text            =   "Text4"
      Top             =   2280
      Width           =   2055
   End
   Begin VB.TextBox Text3 
      Height          =   390
      Left            =   1920
      TabIndex        =   6
      Text            =   "Text3"
      Top             =   1560
      Width           =   2055
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1920
      TabIndex        =   5
      Text            =   "Text2"
      Top             =   840
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1920
      TabIndex        =   4
      Text            =   "Text1"
      Top             =   240
      Width           =   2055
   End
   Begin VB.Label Label4 
      BackColor       =   &H00808080&
      Caption         =   "规格"
      Height          =   375
      Left            =   240
      TabIndex        =   3
      Top             =   2280
      Width           =   1575
   End
   Begin VB.Label Label3 
      BackColor       =   &H00808080&
      Caption         =   "型号"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   1560
      Width           =   1455
   End
   Begin VB.Label Label2 
      BackColor       =   &H00808080&
      Caption         =   "生产厂家"
      Height          =   375
      Left            =   240
      TabIndex        =   1
      Top             =   840
      Width           =   1455
   End
   Begin VB.Label Label1 
      BackColor       =   &H00808080&
      Caption         =   "商品名称"
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   1335
   End
End
Attribute VB_Name = "Form19"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Form8.Adodc1.Recordset.Fields(0) = Text1.Text
   Form8.Adodc1.Recordset.Fields(1) = Text2.Text
   Form8.Adodc1.Recordset.Fields(2) = Text3.Text
   Form8.Adodc1.Recordset.Fields(3) = Text4.Text
  Form8.Adodc1.Recordset.update
  Form8.DataGrid1.Refresh
  MsgBox "修改成功!", , "库存管理系统"
  Form19.Hide
End Sub

Private Sub Command2_Click()
Form19.Hide
End Sub

Private Sub Form_Load()
Text1.Text = Form8.Adodc1.Recordset.Fields(0).Value
Text1.Enabled = False
Text2.Text = Form8.Adodc1.Recordset.Fields(1).Value
Text3.Text = Form8.Adodc1.Recordset.Fields(2).Value
Text4.Text = Form8.Adodc1.Recordset.Fields(3).Value
End Sub

⌨️ 快捷键说明

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