2
<Template author="Mike Krueger" version="1.0">
5
name = "${res:Templates.File.WindowsUserControl.Name}"
6
icon = "VBNet.File.Form"
8
subcategory = "${res:Templates.File.Categories.WindowsApplications}"
9
defaultname = "UserControl${Number}.vb"
12
<Description>${res:Templates.File.WindowsUserControl.Description}</Description>
15
<Reference include="System.Drawing" />
16
<Reference include="System.Windows.Forms" />
20
Special new file templates:
21
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
22
${FullName} -> Full generated path name
23
${FileName} -> File name with extension
24
${FileNameWithoutExtension} -> File name without extension
25
${Extension} -> Extension in the form ".cs"
26
${Path} -> Full path of the file
29
<File name="${Path}/${FileNameWithoutExtension}.Designer.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
30
Partial Class ${ClassName}
32
''' Designer variable used to keep track of non-visual components.
34
Private components As System.ComponentModel.IContainer
37
''' Disposes resources used by the control.
39
''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
40
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
42
If components IsNot Nothing Then
46
MyBase.Dispose(disposing)
50
''' This method is required for Windows Forms designer support.
51
''' Do not change the method contents inside the source code editor. The Forms designer might
52
''' not be able to load this method if it was changed manually.
54
Private Sub InitializeComponent()
58
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
59
Me.Name = "${ClassName}"
63
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
64
Public Partial Class ${ClassName}
65
Inherits System.Windows.Forms.UserControl
68
' The Me.InitializeComponent call is required for Windows Forms designer support.
69
Me.InitializeComponent()
72
' TODO : Add constructor code after InitializeComponents