📄 frmaddnew.vb
字号:
Option Strict Off
Option Explicit On
Friend Class frmaddnew
Inherits System.Windows.Forms.Form
#Region "Windows 窗体设计器生成的代码"
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'对于启动窗体,所创建的第一个实例为默认实例。
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'此调用是 Windows 窗体设计器所必需的。
InitializeComponent()
End Sub
'窗体重写处置,以清理组件列表。
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
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents Command1 As System.Windows.Forms.Button
Public WithEvents cbo_xkind As System.Windows.Forms.ComboBox
Public WithEvents cmdexit As System.Windows.Forms.Button
Public WithEvents cmdcancel As System.Windows.Forms.Button
Public WithEvents cmdok As System.Windows.Forms.Button
Public WithEvents txt_order As System.Windows.Forms.TextBox
Public WithEvents txt_money As System.Windows.Forms.TextBox
Public WithEvents cbo_usename As System.Windows.Forms.ComboBox
Public WithEvents cbo_kind As System.Windows.Forms.ComboBox
Public WithEvents DTPicker_date As AxMSComCtl2.AxDTPicker
Public WithEvents Label3 As System.Windows.Forms.Label
Public WithEvents Label2 As System.Windows.Forms.Label
Public WithEvents Label1 As System.Windows.Forms.Label
Public WithEvents laborder As System.Windows.Forms.Label
Public WithEvents labdate As System.Windows.Forms.Label
Public WithEvents ladusename As System.Windows.Forms.Label
Public WithEvents labkind As System.Windows.Forms.Label
Public WithEvents labmoney As System.Windows.Forms.Label
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器来修改它。
'不要使用代码编辑器修改它。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmaddnew))
Me.components = New System.ComponentModel.Container()
Me.ToolTip1 = New System.Windows.Forms.ToolTip(components)
Me.ToolTip1.Active = True
Me.Command1 = New System.Windows.Forms.Button
Me.cbo_xkind = New System.Windows.Forms.ComboBox
Me.cmdexit = New System.Windows.Forms.Button
Me.cmdcancel = New System.Windows.Forms.Button
Me.cmdok = New System.Windows.Forms.Button
Me.txt_order = New System.Windows.Forms.TextBox
Me.txt_money = New System.Windows.Forms.TextBox
Me.cbo_usename = New System.Windows.Forms.ComboBox
Me.cbo_kind = New System.Windows.Forms.ComboBox
Me.DTPicker_date = New AxMSComCtl2.AxDTPicker
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.laborder = New System.Windows.Forms.Label
Me.labdate = New System.Windows.Forms.Label
Me.ladusename = New System.Windows.Forms.Label
Me.labkind = New System.Windows.Forms.Label
Me.labmoney = New System.Windows.Forms.Label
CType(Me.DTPicker_date, System.ComponentModel.ISupportInitialize).BeginInit()
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.Text = "添加一条新开支记录"
Me.ClientSize = New System.Drawing.Size(410, 220)
Me.Location = New System.Drawing.Point(3, 22)
Me.MaximizeBox = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.ControlBox = True
Me.Enabled = True
Me.KeyPreview = False
Me.MinimizeBox = True
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.ShowInTaskbar = True
Me.HelpButton = False
Me.WindowState = System.Windows.Forms.FormWindowState.Normal
Me.Name = "frmaddnew"
Me.Command1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.Command1.Text = "Command1"
Me.Command1.Size = New System.Drawing.Size(41, 17)
Me.Command1.Location = New System.Drawing.Point(288, 40)
Me.Command1.TabIndex = 17
Me.Command1.BackColor = System.Drawing.SystemColors.Control
Me.Command1.CausesValidation = True
Me.Command1.Enabled = True
Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Command1.TabStop = True
Me.Command1.Name = "Command1"
Me.cbo_xkind.Size = New System.Drawing.Size(89, 20)
Me.cbo_xkind.Location = New System.Drawing.Point(304, 112)
Me.cbo_xkind.TabIndex = 15
Me.cbo_xkind.BackColor = System.Drawing.SystemColors.Window
Me.cbo_xkind.CausesValidation = True
Me.cbo_xkind.Enabled = True
Me.cbo_xkind.ForeColor = System.Drawing.SystemColors.WindowText
Me.cbo_xkind.IntegralHeight = True
Me.cbo_xkind.Cursor = System.Windows.Forms.Cursors.Default
Me.cbo_xkind.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cbo_xkind.Sorted = False
Me.cbo_xkind.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown
Me.cbo_xkind.TabStop = True
Me.cbo_xkind.Visible = True
Me.cbo_xkind.Name = "cbo_xkind"
Me.cmdexit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdexit.Text = "退出"
Me.cmdexit.Font = New System.Drawing.Font("宋体", 12!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.cmdexit.Size = New System.Drawing.Size(73, 33)
Me.cmdexit.Location = New System.Drawing.Point(304, 152)
Me.cmdexit.TabIndex = 7
Me.cmdexit.BackColor = System.Drawing.SystemColors.Control
Me.cmdexit.CausesValidation = True
Me.cmdexit.Enabled = True
Me.cmdexit.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdexit.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdexit.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdexit.TabStop = True
Me.cmdexit.Name = "cmdexit"
Me.cmdcancel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdcancel.Text = "取消"
Me.cmdcancel.Font = New System.Drawing.Font("宋体", 12!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.cmdcancel.Size = New System.Drawing.Size(81, 33)
Me.cmdcancel.Location = New System.Drawing.Point(176, 152)
Me.cmdcancel.TabIndex = 8
Me.cmdcancel.BackColor = System.Drawing.SystemColors.Control
Me.cmdcancel.CausesValidation = True
Me.cmdcancel.Enabled = True
Me.cmdcancel.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdcancel.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdcancel.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdcancel.TabStop = True
Me.cmdcancel.Name = "cmdcancel"
Me.cmdok.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
Me.cmdok.Text = "确定"
Me.cmdok.Font = New System.Drawing.Font("宋体", 12!, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.cmdok.Size = New System.Drawing.Size(81, 33)
Me.cmdok.Location = New System.Drawing.Point(24, 152)
Me.cmdok.TabIndex = 6
Me.cmdok.BackColor = System.Drawing.SystemColors.Control
Me.cmdok.CausesValidation = True
Me.cmdok.Enabled = True
Me.cmdok.ForeColor = System.Drawing.SystemColors.ControlText
Me.cmdok.Cursor = System.Windows.Forms.Cursors.Default
Me.cmdok.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cmdok.TabStop = True
Me.cmdok.Name = "cmdok"
Me.txt_order.AutoSize = False
Me.txt_order.Size = New System.Drawing.Size(81, 25)
Me.txt_order.Location = New System.Drawing.Point(96, 8)
Me.txt_order.Maxlength = 9
Me.txt_order.TabIndex = 0
Me.txt_order.AcceptsReturn = True
Me.txt_order.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txt_order.BackColor = System.Drawing.SystemColors.Window
Me.txt_order.CausesValidation = True
Me.txt_order.Enabled = True
Me.txt_order.ForeColor = System.Drawing.SystemColors.WindowText
Me.txt_order.HideSelection = True
Me.txt_order.ReadOnly = False
Me.txt_order.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txt_order.MultiLine = False
Me.txt_order.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txt_order.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_order.TabStop = True
Me.txt_order.Visible = True
Me.txt_order.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txt_order.Name = "txt_order"
Me.txt_money.AutoSize = False
Me.txt_money.Size = New System.Drawing.Size(81, 25)
Me.txt_money.Location = New System.Drawing.Point(96, 112)
Me.txt_money.TabIndex = 5
Me.txt_money.AcceptsReturn = True
Me.txt_money.TextAlign = System.Windows.Forms.HorizontalAlignment.Left
Me.txt_money.BackColor = System.Drawing.SystemColors.Window
Me.txt_money.CausesValidation = True
Me.txt_money.Enabled = True
Me.txt_money.ForeColor = System.Drawing.SystemColors.WindowText
Me.txt_money.HideSelection = True
Me.txt_money.ReadOnly = False
Me.txt_money.Maxlength = 0
Me.txt_money.Cursor = System.Windows.Forms.Cursors.IBeam
Me.txt_money.MultiLine = False
Me.txt_money.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.txt_money.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_money.TabStop = True
Me.txt_money.Visible = True
Me.txt_money.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.txt_money.Name = "txt_money"
Me.cbo_usename.Size = New System.Drawing.Size(81, 20)
Me.cbo_usename.Location = New System.Drawing.Point(96, 64)
Me.cbo_usename.Items.AddRange(New Object(){"王训", "胡春凡"})
Me.cbo_usename.TabIndex = 2
Me.cbo_usename.Text = "王训"
Me.cbo_usename.BackColor = System.Drawing.SystemColors.Window
Me.cbo_usename.CausesValidation = True
Me.cbo_usename.Enabled = True
Me.cbo_usename.ForeColor = System.Drawing.SystemColors.WindowText
Me.cbo_usename.IntegralHeight = True
Me.cbo_usename.Cursor = System.Windows.Forms.Cursors.Default
Me.cbo_usename.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cbo_usename.Sorted = False
Me.cbo_usename.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown
Me.cbo_usename.TabStop = True
Me.cbo_usename.Visible = True
Me.cbo_usename.Name = "cbo_usename"
Me.cbo_kind.Size = New System.Drawing.Size(89, 20)
Me.cbo_kind.Location = New System.Drawing.Point(304, 64)
Me.cbo_kind.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cbo_kind.TabIndex = 4
Me.cbo_kind.BackColor = System.Drawing.SystemColors.Window
Me.cbo_kind.CausesValidation = True
Me.cbo_kind.Enabled = True
Me.cbo_kind.ForeColor = System.Drawing.SystemColors.WindowText
Me.cbo_kind.IntegralHeight = True
Me.cbo_kind.Cursor = System.Windows.Forms.Cursors.Default
Me.cbo_kind.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.cbo_kind.Sorted = False
Me.cbo_kind.TabStop = True
Me.cbo_kind.Visible = True
Me.cbo_kind.Name = "cbo_kind"
DTPicker_date.OcxState = CType(resources.GetObject("DTPicker_date.OcxState"), System.Windows.Forms.AxHost.State)
Me.DTPicker_date.Size = New System.Drawing.Size(89, 25)
Me.DTPicker_date.Location = New System.Drawing.Point(304, 8)
Me.DTPicker_date.TabIndex = 1
Me.DTPicker_date.Name = "DTPicker_date"
Me.Label3.Text = "Label3"
Me.Label3.Size = New System.Drawing.Size(153, 17)
Me.Label3.Location = New System.Drawing.Point(104, 40)
Me.Label3.TabIndex = 16
Me.Label3.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.Label3.BackColor = System.Drawing.SystemColors.Control
Me.Label3.Enabled = True
Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label3.UseMnemonic = True
Me.Label3.Visible = True
Me.Label3.AutoSize = False
Me.Label3.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Label3.Name = "Label3"
Me.Label2.Text = "开支小类别:"
Me.Label2.Size = New System.Drawing.Size(73, 17)
Me.Label2.Location = New System.Drawing.Point(216, 112)
Me.Label2.TabIndex = 14
Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.Label2.BackColor = System.Drawing.SystemColors.Control
Me.Label2.Enabled = True
Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label2.UseMnemonic = True
Me.Label2.Visible = True
Me.Label2.AutoSize = False
Me.Label2.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Label2.Name = "Label2"
Me.Label1.Size = New System.Drawing.Size(313, 25)
Me.Label1.Location = New System.Drawing.Point(48, 192)
Me.Label1.TabIndex = 13
Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.Label1.BackColor = System.Drawing.SystemColors.Control
Me.Label1.Enabled = True
Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Label1.UseMnemonic = True
Me.Label1.Visible = True
Me.Label1.AutoSize = False
Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.Label1.Name = "Label1"
Me.laborder.Text = "开支编号:"
Me.laborder.Size = New System.Drawing.Size(73, 25)
Me.laborder.Location = New System.Drawing.Point(8, 8)
Me.laborder.TabIndex = 12
Me.laborder.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.laborder.BackColor = System.Drawing.SystemColors.Control
Me.laborder.Enabled = True
Me.laborder.ForeColor = System.Drawing.SystemColors.ControlText
Me.laborder.Cursor = System.Windows.Forms.Cursors.Default
Me.laborder.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.laborder.UseMnemonic = True
Me.laborder.Visible = True
Me.laborder.AutoSize = False
Me.laborder.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.laborder.Name = "laborder"
Me.labdate.Text = "开支日期:"
Me.labdate.Size = New System.Drawing.Size(73, 25)
Me.labdate.Location = New System.Drawing.Point(216, 8)
Me.labdate.TabIndex = 11
Me.labdate.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.labdate.BackColor = System.Drawing.SystemColors.Control
Me.labdate.Enabled = True
Me.labdate.ForeColor = System.Drawing.SystemColors.ControlText
Me.labdate.Cursor = System.Windows.Forms.Cursors.Default
Me.labdate.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.labdate.UseMnemonic = True
Me.labdate.Visible = True
Me.labdate.AutoSize = False
Me.labdate.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.labdate.Name = "labdate"
Me.ladusename.Text = "开支人:"
Me.ladusename.Size = New System.Drawing.Size(73, 25)
Me.ladusename.Location = New System.Drawing.Point(8, 64)
Me.ladusename.TabIndex = 10
Me.ladusename.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.ladusename.BackColor = System.Drawing.SystemColors.Control
Me.ladusename.Enabled = True
Me.ladusename.ForeColor = System.Drawing.SystemColors.ControlText
Me.ladusename.Cursor = System.Windows.Forms.Cursors.Default
Me.ladusename.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.ladusename.UseMnemonic = True
Me.ladusename.Visible = True
Me.ladusename.AutoSize = False
Me.ladusename.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.ladusename.Name = "ladusename"
Me.labkind.Text = "开支大类别:"
Me.labkind.Size = New System.Drawing.Size(73, 25)
Me.labkind.Location = New System.Drawing.Point(216, 64)
Me.labkind.TabIndex = 9
Me.labkind.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.labkind.BackColor = System.Drawing.SystemColors.Control
Me.labkind.Enabled = True
Me.labkind.ForeColor = System.Drawing.SystemColors.ControlText
Me.labkind.Cursor = System.Windows.Forms.Cursors.Default
Me.labkind.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.labkind.UseMnemonic = True
Me.labkind.Visible = True
Me.labkind.AutoSize = False
Me.labkind.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.labkind.Name = "labkind"
Me.labmoney.Text = "开支金额:"
Me.labmoney.Size = New System.Drawing.Size(73, 25)
Me.labmoney.Location = New System.Drawing.Point(8, 112)
Me.labmoney.TabIndex = 3
Me.labmoney.TextAlign = System.Drawing.ContentAlignment.TopLeft
Me.labmoney.BackColor = System.Drawing.SystemColors.Control
Me.labmoney.Enabled = True
Me.labmoney.ForeColor = System.Drawing.SystemColors.ControlText
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -