Click here to Skip to main content
15,892,697 members
Articles / Desktop Programming / Windows Forms

Declarations Generator

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
29 Jun 2010GPL33 min read 19.5K   127   5  
A tool which helps in generating codes for events/properties, so that users of your classes can use events/properties of embedded classes
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frm_CodeViewer
    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.txt_GenertedCode = New System.Windows.Forms.TextBox
        Me.btn_CopyToClipboard = New System.Windows.Forms.Button
        Me.btn_Export = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'txt_GenertedCode
        '
        Me.txt_GenertedCode.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.txt_GenertedCode.BackColor = System.Drawing.SystemColors.ControlLightLight
        Me.txt_GenertedCode.Location = New System.Drawing.Point(1, 46)
        Me.txt_GenertedCode.Multiline = True
        Me.txt_GenertedCode.Name = "txt_GenertedCode"
        Me.txt_GenertedCode.ReadOnly = True
        Me.txt_GenertedCode.Size = New System.Drawing.Size(528, 393)
        Me.txt_GenertedCode.TabIndex = 0
        '
        'btn_CopyToClipboard
        '
        Me.btn_CopyToClipboard.Location = New System.Drawing.Point(140, 12)
        Me.btn_CopyToClipboard.Name = "btn_CopyToClipboard"
        Me.btn_CopyToClipboard.Size = New System.Drawing.Size(122, 23)
        Me.btn_CopyToClipboard.TabIndex = 1
        Me.btn_CopyToClipboard.Text = "Copy To Clipboard"
        Me.btn_CopyToClipboard.UseVisualStyleBackColor = True
        '
        'btn_Export
        '
        Me.btn_Export.Location = New System.Drawing.Point(12, 12)
        Me.btn_Export.Name = "btn_Export"
        Me.btn_Export.Size = New System.Drawing.Size(122, 23)
        Me.btn_Export.TabIndex = 2
        Me.btn_Export.Text = "Export To File"
        Me.btn_Export.UseVisualStyleBackColor = True
        '
        'frm_CodeViewer
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(531, 442)
        Me.Controls.Add(Me.btn_Export)
        Me.Controls.Add(Me.btn_CopyToClipboard)
        Me.Controls.Add(Me.txt_GenertedCode)
        Me.Name = "frm_CodeViewer"
        Me.Text = "Generated Code Viewer"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents txt_GenertedCode As System.Windows.Forms.TextBox
    Friend WithEvents btn_CopyToClipboard As System.Windows.Forms.Button
    Friend WithEvents btn_Export As System.Windows.Forms.Button
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 GNU General Public License (GPLv3)


Written By
Software Developer
Syrian Arab Republic Syrian Arab Republic
The more I learn the more I see my ignorance.

Comments and Discussions