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

📄 orderssummaryviewdialog.designer.vb

📁 讲解visual studio的应用
💻 VB
📖 第 1 页 / 共 2 页
字号:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Public Class OrdersSummaryViewDialog
    Inherits System.Windows.Forms.Form

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        Me.InitializeComponent()
        'Attach event handlers to auto-hide controls.
        Me.AttachVisibilityBindings(Me.Controls)
    End Sub
    Public Sub AttachVisibilityBindings(ByVal controls As System.Windows.Forms.Control.ControlCollection)
        Dim i As Integer = 0
        Do While (i < controls.Count)
            If (Not (controls(i).DataBindings("Visible")) Is Nothing) Then
                'Attach event handlers to auto-hide controls.
                AddHandler controls(i).DataBindings("Visible").Format, AddressOf Me.Visibility_Format
                controls(i).DataBindings("Visible").DataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.Never
            End If
            i = (i + 1)
        Loop

    End Sub
    Public Sub Visibility_Format(ByVal sender As Object, ByVal e As System.Windows.Forms.ConvertEventArgs)
        If (e.Value Is System.DBNull.Value) Then
            e.Value = False
        Else
            e.Value = True
        End If

    End Sub
    Public Shared Function Instance(ByVal bindingSource As System.Windows.Forms.BindingSource) As OrdersSummaryViewDialog
        System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
        If (defaultInstance Is Nothing) Then
            defaultInstance = New MobileNorthwind.OrdersSummaryViewDialog
            defaultInstance.OrdersBindingSource.DataSource = bindingSource
            defaultInstance.EmployeeBindingSource.DataSource = _
                                   My.Forms.Customers.NorthwindDataSet
            defaultInstance.Employee_IDLabel.DataBindings.Add _
                              ("Text", defaultInstance.EmployeeComboBox, "Text")
        End If
        defaultInstance.EmployeeComboBox.Focus()
        defaultInstance.AutoScrollPosition = New System.Drawing.Point(0, 0)
        defaultInstance.OrdersBindingSource.Position = bindingSource.Position
        System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        Return defaultInstance
    End Function
    Private Shared defaultInstance As MobileNorthwind.OrdersSummaryViewDialog
    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
    Private mainMenu1 As System.Windows.Forms.MainMenu

    '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.components = New System.ComponentModel.Container
        Me.OrdersBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.Employee_IDLabel = New System.Windows.Forms.Label
        Me.Ship_NameLabel = New System.Windows.Forms.Label
        Me.Ship_AddressLabel = New System.Windows.Forms.Label
        Me.Ship_CityLabel = New System.Windows.Forms.Label
        Me.Ship_RegionLabel = New System.Windows.Forms.Label
        Me.Ship_Postal_CodeLabel = New System.Windows.Forms.Label
        Me.Ship_CountryLabel = New System.Windows.Forms.Label
        Me.Ship_ViaLabel = New System.Windows.Forms.Label
        Me.Order_DateLabel = New System.Windows.Forms.Label
        Me.Required_DateLabel = New System.Windows.Forms.Label
        Me.Shipped_DateLabel = New System.Windows.Forms.Label
        Me.FreightLabel = New System.Windows.Forms.Label
        Me.mainMenu1 = New System.Windows.Forms.MainMenu
        Me.EditMenuItemMenuItem = New System.Windows.Forms.MenuItem
        Me.Employee_IDLabel1 = New System.Windows.Forms.Label
        Me.Ship_NameLabel1 = New System.Windows.Forms.Label
        Me.Ship_AddressLabel1 = New System.Windows.Forms.Label
        Me.Ship_CityLabel1 = New System.Windows.Forms.Label
        Me.Ship_RegionLabel1 = New System.Windows.Forms.Label
        Me.Ship_Postal_CodeLabel1 = New System.Windows.Forms.Label
        Me.Ship_CountryLabel1 = New System.Windows.Forms.Label
        Me.Ship_ViaLabel1 = New System.Windows.Forms.Label
        Me.Order_DateLabel1 = New System.Windows.Forms.Label
        Me.Required_DateLabel1 = New System.Windows.Forms.Label
        Me.Shipped_DateLabel1 = New System.Windows.Forms.Label
        Me.FreightLabel1 = New System.Windows.Forms.Label
        Me.topBorderPanel = New System.Windows.Forms.Panel
        Me.leftBorderPanel = New System.Windows.Forms.Panel
        Me.rightBorderPanel = New System.Windows.Forms.Panel
        Me.EmployeeBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.EmployeeComboBox = New System.Windows.Forms.ComboBox
        Me.SuspendLayout()
        '
        'OrdersBindingSource
        '
        Me.OrdersBindingSource.DataMember = "Orders"
        Me.OrdersBindingSource.DataSource = GetType(MobileNorthwind.NorthwindDataSet)
        '
        'Employee_IDLabel
        '
        Me.Employee_IDLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Employee_IDLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Employee_IDLabel.Location = New System.Drawing.Point(4, 24)
        Me.Employee_IDLabel.Name = "Employee_IDLabel"
        Me.Employee_IDLabel.Size = New System.Drawing.Size(219, 21)
        Me.Employee_IDLabel.Text = "Employee:"
        '
        'Ship_NameLabel
        '
        Me.Ship_NameLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Name", True))
        Me.Ship_NameLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_NameLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_NameLabel.Location = New System.Drawing.Point(4, 65)
        Me.Ship_NameLabel.Name = "Ship_NameLabel"
        Me.Ship_NameLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_NameLabel.Text = "Ship Name:"
        '
        'Ship_AddressLabel
        '
        Me.Ship_AddressLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Address", True))
        Me.Ship_AddressLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_AddressLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_AddressLabel.Location = New System.Drawing.Point(4, 106)
        Me.Ship_AddressLabel.Name = "Ship_AddressLabel"
        Me.Ship_AddressLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_AddressLabel.Text = "Ship Address:"
        '
        'Ship_CityLabel
        '
        Me.Ship_CityLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship City", True))
        Me.Ship_CityLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_CityLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_CityLabel.Location = New System.Drawing.Point(4, 147)
        Me.Ship_CityLabel.Name = "Ship_CityLabel"
        Me.Ship_CityLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_CityLabel.Text = "Ship City:"
        '
        'Ship_RegionLabel
        '
        Me.Ship_RegionLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Region", True))
        Me.Ship_RegionLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_RegionLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_RegionLabel.Location = New System.Drawing.Point(4, 188)
        Me.Ship_RegionLabel.Name = "Ship_RegionLabel"
        Me.Ship_RegionLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_RegionLabel.Text = "Ship Region:"
        '
        'Ship_Postal_CodeLabel
        '
        Me.Ship_Postal_CodeLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Postal Code", True))
        Me.Ship_Postal_CodeLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_Postal_CodeLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_Postal_CodeLabel.Location = New System.Drawing.Point(4, 229)
        Me.Ship_Postal_CodeLabel.Name = "Ship_Postal_CodeLabel"
        Me.Ship_Postal_CodeLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_Postal_CodeLabel.Text = "Ship Postal Code:"
        '
        'Ship_CountryLabel
        '
        Me.Ship_CountryLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Country", True))
        Me.Ship_CountryLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_CountryLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_CountryLabel.Location = New System.Drawing.Point(4, 270)
        Me.Ship_CountryLabel.Name = "Ship_CountryLabel"
        Me.Ship_CountryLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_CountryLabel.Text = "Ship Country:"
        '
        'Ship_ViaLabel
        '
        Me.Ship_ViaLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Ship Via", True))
        Me.Ship_ViaLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Ship_ViaLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Ship_ViaLabel.Location = New System.Drawing.Point(4, 311)
        Me.Ship_ViaLabel.Name = "Ship_ViaLabel"
        Me.Ship_ViaLabel.Size = New System.Drawing.Size(219, 21)
        Me.Ship_ViaLabel.Text = "Ship Via:"
        '
        'Order_DateLabel
        '
        Me.Order_DateLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Order Date", True))
        Me.Order_DateLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Order_DateLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Order_DateLabel.Location = New System.Drawing.Point(4, 352)
        Me.Order_DateLabel.Name = "Order_DateLabel"
        Me.Order_DateLabel.Size = New System.Drawing.Size(219, 21)
        Me.Order_DateLabel.Text = "Order Date:"
        '
        'Required_DateLabel
        '
        Me.Required_DateLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Required Date", True))
        Me.Required_DateLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Required_DateLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Required_DateLabel.Location = New System.Drawing.Point(4, 393)
        Me.Required_DateLabel.Name = "Required_DateLabel"
        Me.Required_DateLabel.Size = New System.Drawing.Size(219, 21)
        Me.Required_DateLabel.Text = "Required Date:"
        '
        'Shipped_DateLabel
        '
        Me.Shipped_DateLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Shipped Date", True))
        Me.Shipped_DateLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.Shipped_DateLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.Shipped_DateLabel.Location = New System.Drawing.Point(4, 434)
        Me.Shipped_DateLabel.Name = "Shipped_DateLabel"
        Me.Shipped_DateLabel.Size = New System.Drawing.Size(219, 21)
        Me.Shipped_DateLabel.Text = "Shipped Date:"
        '
        'FreightLabel
        '
        Me.FreightLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.OrdersBindingSource, "Freight", True))
        Me.FreightLabel.Dock = System.Windows.Forms.DockStyle.Top
        Me.FreightLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        Me.FreightLabel.Location = New System.Drawing.Point(4, 475)
        Me.FreightLabel.Name = "FreightLabel"
        Me.FreightLabel.Size = New System.Drawing.Size(219, 21)
        Me.FreightLabel.Text = "Freight:"
        '
        'mainMenu1
        '

⌨️ 快捷键说明

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