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

📄 productsummaryviewdialog.designer.vb

📁 Microsoft Mobile Development Handbook的代码,有C#,VB,C++的
💻 VB
字号:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Public Class ProductSummaryViewDialog
    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 ProductSummaryViewDialog
        System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
        If (defaultInstance Is Nothing) Then
            defaultInstance = New SQLCEDataSourceQuickUI.ProductSummaryViewDialog
            defaultInstance.ProductBindingSource.DataSource = bindingSource
        End If
        defaultInstance.AutoScrollPosition = New System.Drawing.Point(0, 0)
        defaultInstance.ProductBindingSource.Position = bindingSource.Position
        System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        Return defaultInstance
    End Function
    Private Shared defaultInstance As SQLCEDataSourceQuickUI.ProductSummaryViewDialog
    '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
        Dim ProductIDLabel As System.Windows.Forms.Label
        Dim NameLabel As System.Windows.Forms.Label
        Dim ColorLabel As System.Windows.Forms.Label
        Dim ListPriceLabel As System.Windows.Forms.Label
        Dim SizeLabel As System.Windows.Forms.Label
        Dim ProductCategoryIDLabel As System.Windows.Forms.Label
        Me.mainMenu1 = New System.Windows.Forms.MainMenu
        Me.EditMenuItemMenuItem = New System.Windows.Forms.MenuItem
        Me.ProductBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.ProductIDLabel1 = New System.Windows.Forms.Label
        Me.NameLabel1 = New System.Windows.Forms.Label
        Me.ColorLabel1 = New System.Windows.Forms.Label
        Me.ListPriceLabel1 = New System.Windows.Forms.Label
        Me.SizeLabel1 = New System.Windows.Forms.Label
        Me.ProductCategoryIDLabel1 = 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
        ProductIDLabel = New System.Windows.Forms.Label
        NameLabel = New System.Windows.Forms.Label
        ColorLabel = New System.Windows.Forms.Label
        ListPriceLabel = New System.Windows.Forms.Label
        SizeLabel = New System.Windows.Forms.Label
        ProductCategoryIDLabel = New System.Windows.Forms.Label
        Me.SuspendLayout()
        '
        'mainMenu1
        '
        Me.mainMenu1.MenuItems.Add(Me.EditMenuItemMenuItem)
        '
        'EditMenuItemMenuItem
        '
        Me.EditMenuItemMenuItem.Text = "Edit"
        '
        'ProductBindingSource
        '
        Me.ProductBindingSource.DataMember = "Product"
        Me.ProductBindingSource.DataSource = GetType(SQLCEDataSourceQuickUI.ProductsDataSet)
        '
        'ProductIDLabel
        '
        ProductIDLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ProductID", True))
        ProductIDLabel.Dock = System.Windows.Forms.DockStyle.Top
        ProductIDLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        ProductIDLabel.Location = New System.Drawing.Point(4, 4)
        ProductIDLabel.Name = "ProductIDLabel"
        ProductIDLabel.Size = New System.Drawing.Size(78, 21)
        ProductIDLabel.Text = "Product ID:"
        '
        'ProductIDLabel1
        '
        Me.ProductIDLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "ProductID", True))
        Me.ProductIDLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ProductID", True))
        Me.ProductIDLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.ProductIDLabel1.Location = New System.Drawing.Point(4, 18)
        Me.ProductIDLabel1.Name = "ProductIDLabel1"
        Me.ProductIDLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'NameLabel
        '
        NameLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Name", True))
        NameLabel.Dock = System.Windows.Forms.DockStyle.Top
        NameLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        NameLabel.Location = New System.Drawing.Point(4, 49)
        NameLabel.Name = "NameLabel"
        NameLabel.Size = New System.Drawing.Size(44, 21)
        NameLabel.Text = "Name:"
        '
        'NameLabel1
        '
        Me.NameLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "Name", True))
        Me.NameLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Name", True))
        Me.NameLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.NameLabel1.Location = New System.Drawing.Point(4, 63)
        Me.NameLabel1.Name = "NameLabel1"
        Me.NameLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'ColorLabel
        '
        ColorLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Color", True))
        ColorLabel.Dock = System.Windows.Forms.DockStyle.Top
        ColorLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        ColorLabel.Location = New System.Drawing.Point(4, 94)
        ColorLabel.Name = "ColorLabel"
        ColorLabel.Size = New System.Drawing.Size(43, 21)
        ColorLabel.Text = "Color:"
        '
        'ColorLabel1
        '
        Me.ColorLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "Color", True))
        Me.ColorLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Color", True))
        Me.ColorLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.ColorLabel1.Location = New System.Drawing.Point(4, 108)
        Me.ColorLabel1.Name = "ColorLabel1"
        Me.ColorLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'ListPriceLabel
        '
        ListPriceLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ListPrice", True))
        ListPriceLabel.Dock = System.Windows.Forms.DockStyle.Top
        ListPriceLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        ListPriceLabel.Location = New System.Drawing.Point(4, 139)
        ListPriceLabel.Name = "ListPriceLabel"
        ListPriceLabel.Size = New System.Drawing.Size(66, 21)
        ListPriceLabel.Text = "List Price:"
        '
        'ListPriceLabel1
        '
        Me.ListPriceLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "ListPrice", True))
        Me.ListPriceLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ListPrice", True))
        Me.ListPriceLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.ListPriceLabel1.Location = New System.Drawing.Point(4, 153)
        Me.ListPriceLabel1.Name = "ListPriceLabel1"
        Me.ListPriceLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'SizeLabel
        '
        SizeLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Size", True))
        SizeLabel.Dock = System.Windows.Forms.DockStyle.Top
        SizeLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        SizeLabel.Location = New System.Drawing.Point(4, 184)
        SizeLabel.Name = "SizeLabel"
        SizeLabel.Size = New System.Drawing.Size(35, 21)
        SizeLabel.Text = "Size:"
        '
        'SizeLabel1
        '
        Me.SizeLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "Size", True))
        Me.SizeLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "Size", True))
        Me.SizeLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.SizeLabel1.Location = New System.Drawing.Point(4, 198)
        Me.SizeLabel1.Name = "SizeLabel1"
        Me.SizeLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'ProductCategoryIDLabel
        '
        ProductCategoryIDLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ProductCategoryID", True))
        ProductCategoryIDLabel.Dock = System.Windows.Forms.DockStyle.Top
        ProductCategoryIDLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
        ProductCategoryIDLabel.Location = New System.Drawing.Point(4, 229)
        ProductCategoryIDLabel.Name = "ProductCategoryIDLabel"
        ProductCategoryIDLabel.Size = New System.Drawing.Size(138, 21)
        ProductCategoryIDLabel.Text = "Product Category ID:"
        '
        'ProductCategoryIDLabel1
        '
        Me.ProductCategoryIDLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductBindingSource, "ProductCategoryID", True))
        Me.ProductCategoryIDLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductBindingSource, "ProductCategoryID", True))
        Me.ProductCategoryIDLabel1.Dock = System.Windows.Forms.DockStyle.Top
        Me.ProductCategoryIDLabel1.Location = New System.Drawing.Point(4, 243)
        Me.ProductCategoryIDLabel1.Name = "ProductCategoryIDLabel1"
        Me.ProductCategoryIDLabel1.Size = New System.Drawing.Size(100, 20)
        '
        'topBorderPanel
        '
        Me.topBorderPanel.Dock = System.Windows.Forms.DockStyle.Top
        Me.topBorderPanel.Location = New System.Drawing.Point(0, 0)
        Me.topBorderPanel.Name = "topBorderPanel"
        Me.topBorderPanel.Size = New System.Drawing.Size(100, 2)
        '
        'leftBorderPanel
        '
        Me.leftBorderPanel.Dock = System.Windows.Forms.DockStyle.Left
        Me.leftBorderPanel.Location = New System.Drawing.Point(0, 0)
        Me.leftBorderPanel.Name = "leftBorderPanel"
        Me.leftBorderPanel.Size = New System.Drawing.Size(4, 100)
        '
        'rightBorderPanel
        '
        Me.rightBorderPanel.Dock = System.Windows.Forms.DockStyle.Right
        Me.rightBorderPanel.Location = New System.Drawing.Point(0, 0)
        Me.rightBorderPanel.Name = "rightBorderPanel"
        Me.rightBorderPanel.Size = New System.Drawing.Size(4, 100)
        '
        'ProductSummaryViewDialog
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(96.0!, 96.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
        Me.AutoScroll = True
        Me.ClientSize = New System.Drawing.Size(240, 268)
        Me.Controls.Add(Me.ProductCategoryIDLabel1)
        Me.Controls.Add(ProductCategoryIDLabel)
        Me.Controls.Add(Me.SizeLabel1)
        Me.Controls.Add(SizeLabel)
        Me.Controls.Add(Me.ListPriceLabel1)
        Me.Controls.Add(ListPriceLabel)
        Me.Controls.Add(Me.ColorLabel1)
        Me.Controls.Add(ColorLabel)
        Me.Controls.Add(Me.NameLabel1)
        Me.Controls.Add(NameLabel)
        Me.Controls.Add(Me.ProductIDLabel1)
        Me.Controls.Add(ProductIDLabel)
        Me.Controls.Add(Me.topBorderPanel)
        Me.Controls.Add(Me.leftBorderPanel)
        Me.Controls.Add(Me.rightBorderPanel)
        Me.Menu = Me.mainMenu1
        Me.MinimizeBox = False
        Me.Name = "ProductSummaryViewDialog"
        Me.Text = "ProductSummaryViewDialog"
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents EditMenuItemMenuItem As System.Windows.Forms.MenuItem
    Friend WithEvents ProductBindingSource As System.Windows.Forms.BindingSource
    Friend WithEvents ProductIDLabel1 As System.Windows.Forms.Label
    Friend WithEvents NameLabel1 As System.Windows.Forms.Label
    Friend WithEvents ColorLabel1 As System.Windows.Forms.Label
    Friend WithEvents ListPriceLabel1 As System.Windows.Forms.Label
    Friend WithEvents SizeLabel1 As System.Windows.Forms.Label
    Friend WithEvents ProductCategoryIDLabel1 As System.Windows.Forms.Label
    Friend WithEvents topBorderPanel As System.Windows.Forms.Panel
    Friend WithEvents leftBorderPanel As System.Windows.Forms.Panel
    Friend WithEvents rightBorderPanel As System.Windows.Forms.Panel
End Class

⌨️ 快捷键说明

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