📄 form1.vb
字号:
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
Friend WithEvents cboDrink As System.Windows.Forms.ComboBox
Friend WithEvents lblTitle As System.Windows.Forms.Label
Friend WithEvents lblList As System.Windows.Forms.Label
Friend WithEvents lblName As System.Windows.Forms.Label
Friend WithEvents lblPrice As System.Windows.Forms.Label
Friend WithEvents lblQty As System.Windows.Forms.Label
Friend WithEvents lblMoney As System.Windows.Forms.Label
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents txtMoney As System.Windows.Forms.TextBox
Friend WithEvents txtPrice As System.Windows.Forms.TextBox
Friend WithEvents txtQty As System.Windows.Forms.TextBox
'Required by the Windows Form Designer
Private components As System.ComponentModel.Container
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.lblPrice = New System.Windows.Forms.Label
Me.cboDrink = New System.Windows.Forms.ComboBox
Me.txtMoney = New System.Windows.Forms.TextBox
Me.lblName = New System.Windows.Forms.Label
Me.lblQty = New System.Windows.Forms.Label
Me.txtPrice = New System.Windows.Forms.TextBox
Me.lblMoney = New System.Windows.Forms.Label
Me.txtQty = New System.Windows.Forms.TextBox
Me.lblTitle = New System.Windows.Forms.Label
Me.lblList = New System.Windows.Forms.Label
Me.txtName = New System.Windows.Forms.TextBox
Me.SuspendLayout()
'
'lblPrice
'
Me.lblPrice.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblPrice.Location = New System.Drawing.Point(192, 90)
Me.lblPrice.Name = "lblPrice"
Me.lblPrice.Size = New System.Drawing.Size(67, 22)
Me.lblPrice.TabIndex = 3
Me.lblPrice.Text = "单价"
'
'cboDrink
'
Me.cboDrink.DropDownWidth = 121
Me.cboDrink.Location = New System.Drawing.Point(19, 75)
Me.cboDrink.Name = "cboDrink"
Me.cboDrink.Size = New System.Drawing.Size(145, 20)
Me.cboDrink.TabIndex = 0
'
'txtMoney
'
Me.txtMoney.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.txtMoney.Location = New System.Drawing.Point(269, 164)
Me.txtMoney.Name = "txtMoney"
Me.txtMoney.ReadOnly = True
Me.txtMoney.Size = New System.Drawing.Size(86, 24)
Me.txtMoney.TabIndex = 4
Me.txtMoney.Text = ""
'
'lblName
'
Me.lblName.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblName.Location = New System.Drawing.Point(192, 52)
Me.lblName.Name = "lblName"
Me.lblName.Size = New System.Drawing.Size(67, 23)
Me.lblName.TabIndex = 3
Me.lblName.Text = "物品"
'
'lblQty
'
Me.lblQty.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblQty.Location = New System.Drawing.Point(192, 127)
Me.lblQty.Name = "lblQty"
Me.lblQty.Size = New System.Drawing.Size(67, 22)
Me.lblQty.TabIndex = 3
Me.lblQty.Text = "库存量"
'
'txtPrice
'
Me.txtPrice.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.txtPrice.Location = New System.Drawing.Point(269, 90)
Me.txtPrice.Name = "txtPrice"
Me.txtPrice.Size = New System.Drawing.Size(86, 24)
Me.txtPrice.TabIndex = 4
Me.txtPrice.Text = ""
'
'lblMoney
'
Me.lblMoney.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblMoney.Location = New System.Drawing.Point(192, 164)
Me.lblMoney.Name = "lblMoney"
Me.lblMoney.Size = New System.Drawing.Size(67, 23)
Me.lblMoney.TabIndex = 3
Me.lblMoney.Text = "价值"
'
'txtQty
'
Me.txtQty.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.txtQty.Location = New System.Drawing.Point(269, 127)
Me.txtQty.Name = "txtQty"
Me.txtQty.Size = New System.Drawing.Size(86, 24)
Me.txtQty.TabIndex = 4
Me.txtQty.Text = ""
'
'lblTitle
'
Me.lblTitle.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblTitle.Location = New System.Drawing.Point(19, 7)
Me.lblTitle.Name = "lblTitle"
Me.lblTitle.Size = New System.Drawing.Size(327, 30)
Me.lblTitle.TabIndex = 1
Me.lblTitle.Text = "全OK便利店库存查询"
'
'lblList
'
Me.lblList.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.lblList.Location = New System.Drawing.Point(19, 52)
Me.lblList.Name = "lblList"
Me.lblList.Size = New System.Drawing.Size(87, 15)
Me.lblList.TabIndex = 2
Me.lblList.Text = "物品清单"
'
'txtName
'
Me.txtName.Font = New System.Drawing.Font("Microsoft Sans Serif", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
Me.txtName.Location = New System.Drawing.Point(269, 52)
Me.txtName.Name = "txtName"
Me.txtName.ReadOnly = True
Me.txtName.Size = New System.Drawing.Size(86, 24)
Me.txtName.TabIndex = 4
Me.txtName.Text = ""
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(374, 198)
Me.Controls.Add(Me.txtQty)
Me.Controls.Add(Me.txtPrice)
Me.Controls.Add(Me.txtMoney)
Me.Controls.Add(Me.txtName)
Me.Controls.Add(Me.lblMoney)
Me.Controls.Add(Me.lblQty)
Me.Controls.Add(Me.lblPrice)
Me.Controls.Add(Me.lblName)
Me.Controls.Add(Me.lblList)
Me.Controls.Add(Me.lblTitle)
Me.Controls.Add(Me.cboDrink)
Me.Name = "Form1"
Me.Text = "f10_6_1"
Me.ResumeLayout(False)
End Sub
#End Region
'************** f10_6_1 **************
Dim sname() As String '用来存放物品的名称
Dim price() As Integer '用来存放物品的单价
Dim qty() As Integer '用来存放物品的库存量
Dim count, point As Integer 'count 为数据总笔数、
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -