Click here to Skip to main content
15,895,084 members
Articles / Multimedia / GDI+

Rich Design Time Editing with UITypeEditors (VB.NET)

Rate me:
Please Sign up or sign in to vote.
4.98/5 (63 votes)
18 Jan 2012CPOL14 min read 168.1K   4.5K   170  
How to use UITypeEditors, Smart Tags, ControlDesigner Verbs, and Expandable Properties to make design-time editing easier.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

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

    '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.ColorExampleControl1 = New UITypeEditorDemo.ColorExampleControl
        Me.SuspendLayout()
        '
        'ColorExampleControl1
        '
        Me.ColorExampleControl1.BackColor = System.Drawing.Color.White
        Me.ColorExampleControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.ColorExampleControl1.Location = New System.Drawing.Point(64, 43)
        Me.ColorExampleControl1.Name = "ColorExampleControl1"
        Me.ColorExampleControl1.Size = New System.Drawing.Size(181, 240)
        Me.ColorExampleControl1.TabIndex = 0
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(309, 338)
        Me.Controls.Add(Me.ColorExampleControl1)
        Me.Name = "Form2"
        Me.Text = "Form2"
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents ColorExampleControl1 As UITypeEditorDemo.ColorExampleControl
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I first got hooked on programing with the TI994A. After it finally lost all support I reluctantly moved to the Apple IIe. Thank You BeagleBros for getting me through. I wrote programs for my Scuba buisness during this time. Currently I am a Database manager and software developer. I started with VBA and VB6 and now having fun with VB.NET/WPF/C#...

Comments and Discussions