diff --git a/data/templates/file/VB/VB.Forms.Form.xft b/data/templates/file/VB/VB.Forms.Form.xft
index 82e31320bc9..75be5decb80 100644
--- a/data/templates/file/VB/VB.Forms.Form.xft
+++ b/data/templates/file/VB/VB.Forms.Form.xft
@@ -1,22 +1,11 @@
-
-
-
-
+
+
${res:Templates.File.WindowsForm.Description}
-
-
+
_
Partial Class ${ClassName}
- Inherits System.Windows.Forms.Form
-
- '''
- ''' Designer variable used to keep track of non-visual components.
- '''
- Private components As System.ComponentModel.IContainer
-
- '''
- ''' Disposes resources used by the form.
- '''
- ''' true if managed resources should be disposed; otherwise, false.
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If components IsNot Nothing Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- '''
- ''' This method is required for Windows Forms designer support.
- ''' Do not change the method contents inside the source code editor. The Forms designer might
- ''' not be able to load this method if it was changed manually.
- '''
- Private Sub InitializeComponent()
- '
- '${ClassName}
- '
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.Name = "${ClassName}"
- Me.Text = "${ClassName}"
- End Sub
+ Inherits System.Windows.Forms.Form
+
+ 'Form overrides dispose to clean up the component list.
+ _
+ 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.
+ _
+ Private Sub InitializeComponent()
+ components = New System.ComponentModel.Container
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.Text = "${ClassName}"
+ End Sub
End Class
-]]>
-
+
+
-
diff --git a/data/templates/file/VB/VB.Forms.UserControl.xft b/data/templates/file/VB/VB.Forms.UserControl.xft
index a1628cbc5be..12ee93a6b76 100644
--- a/data/templates/file/VB/VB.Forms.UserControl.xft
+++ b/data/templates/file/VB/VB.Forms.UserControl.xft
@@ -27,56 +27,42 @@
-->
_
Partial Class ${ClassName}
- '''
- ''' Designer variable used to keep track of non-visual components.
- '''
- Private components As System.ComponentModel.IContainer
-
- '''
- ''' Disposes resources used by the control.
- '''
- ''' true if managed resources should be disposed; otherwise, false.
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If components IsNot Nothing Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- '''
- ''' This method is required for Windows Forms designer support.
- ''' Do not change the method contents inside the source code editor. The Forms designer might
- ''' not be able to load this method if it was changed manually.
- '''
- Private Sub InitializeComponent()
- '
- '${ClassName}
- '
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.Name = "${ClassName}"
- End Sub
+ Inherits System.Windows.Forms.UserControl
+
+ 'UserControl overrides dispose to clean up the component list.
+ _
+ 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.
+ _
+ Private Sub InitializeComponent()
+ components = New System.ComponentModel.Container()
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ End Sub
+
End Class
]]>
-
-
diff --git a/data/templates/project/VB/ControlLibrary.xpt b/data/templates/project/VB/ControlLibrary.xpt
index a4bd140774b..a9d5ab64c64 100644
--- a/data/templates/project/VB/ControlLibrary.xpt
+++ b/data/templates/project/VB/ControlLibrary.xpt
@@ -1,7 +1,7 @@
-
+ lastModified = "28/09/2014">
@@ -44,56 +44,42 @@
_
Partial Class UserControl1
- '''
- ''' Designer variable used to keep track of non-visual components.
- '''
- Private components As System.ComponentModel.IContainer
-
- '''
- ''' Disposes resources used by the control.
- '''
- ''' true if managed resources should be disposed; otherwise, false.
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If components IsNot Nothing Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- '''
- ''' This method is required for Windows Forms designer support.
- ''' Do not change the method contents inside the source code editor. The Forms designer might
- ''' not be able to load this method if it was changed manually.
- '''
- Private Sub InitializeComponent()
- '
- 'UserControl1
- '
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.Name = "UserControl1"
- End Sub
+ Inherits System.Windows.Forms.UserControl
+
+ 'UserControl overrides dispose to clean up the component list.
+ _
+ 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.
+ _
+ Private Sub InitializeComponent()
+ components = New System.ComponentModel.Container()
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ End Sub
+
End Class
]]>
-
-
diff --git a/data/templates/project/VB/FormsProject.xpt b/data/templates/project/VB/FormsProject.xpt
index d155e0ea58a..77b9fc7a26a 100644
--- a/data/templates/project/VB/FormsProject.xpt
+++ b/data/templates/project/VB/FormsProject.xpt
@@ -1,7 +1,7 @@
-
+ lastModified = "28/09/2014">
@@ -45,53 +45,40 @@
_
Partial Class MainForm
- Inherits System.Windows.Forms.Form
-
- '''
- ''' Designer variable used to keep track of non-visual components.
- '''
- Private components As System.ComponentModel.IContainer
-
- '''
- ''' Disposes resources used by the form.
- '''
- ''' true if managed resources should be disposed; otherwise, false.
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If components IsNot Nothing Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- '''
- ''' This method is required for Windows Forms designer support.
- ''' Do not change the method contents inside the source code editor. The Forms designer might
- ''' not be able to load this method if it was changed manually.
- '''
- Private Sub InitializeComponent()
- '
- 'MainForm
- '
- Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
- Me.Name = "MainForm"
- Me.Text = "${ProjectName}"
- End Sub
+ Inherits System.Windows.Forms.Form
+
+ 'Form overrides dispose to clean up the component list.
+ _
+ 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.
+ _
+ Private Sub InitializeComponent()
+ components = New System.ComponentModel.Container
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.Text = "MainForm"
+ End Sub
End Class
]]>