I have been having a lot of trouble getting my form controls to work, every time I add a few controls I keep receiving a designer error.
I have pasted the designer code at the bottom as zip files cannot be attached.
Partial Class frm_CompanyInformation
Inherits MetroFramework.Forms.MetroForm
'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.lbl_CompanyName = New MetroFramework.Controls.MetroLabel()
Me.txt_CompanyName = New MetroFramework.Controls.MetroTextBox()
Me.txt_PhysicalAddress = New MetroFramework.Controls.MetroTextBox()
Me.lbl_PhysicalAddress = New MetroFramework.Controls.MetroLabel()
Me.txt_BillingAddress = New MetroFramework.Controls.MetroTextBox()
Me.lbl_BillingAddress = New MetroFramework.Controls.MetroLabel()
Me.txt_PhoneNumber = New MetroFramework.Controls.MetroTextBox()
Me.lbl_PhoneNumber = New MetroFramework.Controls.MetroLabel()
Me.txt_FaxNumber = New MetroFramework.Controls.MetroTextBox()
Me.lbl_FaxNumber = New MetroFramework.Controls.MetroLabel()
Me.txt_Email = New MetroFramework.Controls.MetroTextBox()
Me.lbl_Email = New MetroFramework.Controls.MetroLabel()
Me.txt_Serial = New MetroFramework.Controls.MetroTextBox()
Me.lbl_Serial = New MetroFramework.Controls.MetroLabel()
Me.MetroButton1 = New MetroFramework.Controls.MetroButton()
Me.MetroButton2 = New MetroFramework.Controls.MetroButton()
Me.SuspendLayout()
'
'lbl_CompanyName
'
Me.lbl_CompanyName.AutoSize = True
Me.lbl_CompanyName.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_CompanyName.Location = New System.Drawing.Point(23, 60)
Me.lbl_CompanyName.Name = "lbl_CompanyName"
Me.lbl_CompanyName.Size = New System.Drawing.Size(136, 25)
Me.lbl_CompanyName.TabIndex = 0
Me.lbl_CompanyName.Text = "Company Name"
'
'txt_CompanyName
'
'
'
'
Me.txt_CompanyName.CustomButton.Image = Nothing
Me.txt_CompanyName.CustomButton.Location = New System.Drawing.Point(498, 1)
Me.txt_CompanyName.CustomButton.Name = ""
Me.txt_CompanyName.CustomButton.Size = New System.Drawing.Size(21, 21)
Me.txt_CompanyName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_CompanyName.CustomButton.TabIndex = 1
Me.txt_CompanyName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_CompanyName.CustomButton.UseSelectable = True
Me.txt_CompanyName.CustomButton.Visible = False
Me.txt_CompanyName.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_CompanyName.Lines = New String(-1) {}
Me.txt_CompanyName.Location = New System.Drawing.Point(23, 88)
Me.txt_CompanyName.MaxLength = 32767
Me.txt_CompanyName.Name = "txt_CompanyName"
Me.txt_CompanyName.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_CompanyName.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_CompanyName.SelectedText = ""
Me.txt_CompanyName.SelectionLength = 0
Me.txt_CompanyName.SelectionStart = 0
Me.txt_CompanyName.ShortcutsEnabled = True
Me.txt_CompanyName.Size = New System.Drawing.Size(520, 23)
Me.txt_CompanyName.TabIndex = 1
Me.txt_CompanyName.UseSelectable = True
Me.txt_CompanyName.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_CompanyName.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'txt_PhysicalAddress
'
'
'
'
Me.txt_PhysicalAddress.CustomButton.Image = Nothing
Me.txt_PhysicalAddress.CustomButton.Location = New System.Drawing.Point(117, 2)
Me.txt_PhysicalAddress.CustomButton.Name = ""
Me.txt_PhysicalAddress.CustomButton.Size = New System.Drawing.Size(137, 137)
Me.txt_PhysicalAddress.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_PhysicalAddress.CustomButton.TabIndex = 1
Me.txt_PhysicalAddress.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_PhysicalAddress.CustomButton.UseSelectable = True
Me.txt_PhysicalAddress.CustomButton.Visible = False
Me.txt_PhysicalAddress.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_PhysicalAddress.Lines = New String(-1) {}
Me.txt_PhysicalAddress.Location = New System.Drawing.Point(23, 142)
Me.txt_PhysicalAddress.MaxLength = 32767
Me.txt_PhysicalAddress.Multiline = True
Me.txt_PhysicalAddress.Name = "txt_PhysicalAddress"
Me.txt_PhysicalAddress.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_PhysicalAddress.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_PhysicalAddress.SelectedText = ""
Me.txt_PhysicalAddress.SelectionLength = 0
Me.txt_PhysicalAddress.SelectionStart = 0
Me.txt_PhysicalAddress.ShortcutsEnabled = True
Me.txt_PhysicalAddress.Size = New System.Drawing.Size(257, 142)
Me.txt_PhysicalAddress.TabIndex = 3
Me.txt_PhysicalAddress.UseSelectable = True
Me.txt_PhysicalAddress.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_PhysicalAddress.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_PhysicalAddress
'
Me.lbl_PhysicalAddress.AutoSize = True
Me.lbl_PhysicalAddress.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_PhysicalAddress.Location = New System.Drawing.Point(23, 114)
Me.lbl_PhysicalAddress.Name = "lbl_PhysicalAddress"
Me.lbl_PhysicalAddress.Size = New System.Drawing.Size(137, 25)
Me.lbl_PhysicalAddress.TabIndex = 2
Me.lbl_PhysicalAddress.Text = "Physical Address"
'
'txt_BillingAddress
'
'
'
'
Me.txt_BillingAddress.CustomButton.Image = Nothing
Me.txt_BillingAddress.CustomButton.Location = New System.Drawing.Point(117, 2)
Me.txt_BillingAddress.CustomButton.Name = ""
Me.txt_BillingAddress.CustomButton.Size = New System.Drawing.Size(137, 137)
Me.txt_BillingAddress.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_BillingAddress.CustomButton.TabIndex = 1
Me.txt_BillingAddress.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_BillingAddress.CustomButton.UseSelectable = True
Me.txt_BillingAddress.CustomButton.Visible = False
Me.txt_BillingAddress.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_BillingAddress.Lines = New String(-1) {}
Me.txt_BillingAddress.Location = New System.Drawing.Point(286, 142)
Me.txt_BillingAddress.MaxLength = 32767
Me.txt_BillingAddress.Multiline = True
Me.txt_BillingAddress.Name = "txt_BillingAddress"
Me.txt_BillingAddress.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_BillingAddress.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_BillingAddress.SelectedText = ""
Me.txt_BillingAddress.SelectionLength = 0
Me.txt_BillingAddress.SelectionStart = 0
Me.txt_BillingAddress.ShortcutsEnabled = True
Me.txt_BillingAddress.Size = New System.Drawing.Size(257, 142)
Me.txt_BillingAddress.TabIndex = 5
Me.txt_BillingAddress.UseSelectable = True
Me.txt_BillingAddress.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_BillingAddress.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_BillingAddress
'
Me.lbl_BillingAddress.AutoSize = True
Me.lbl_BillingAddress.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_BillingAddress.Location = New System.Drawing.Point(286, 114)
Me.lbl_BillingAddress.Name = "lbl_BillingAddress"
Me.lbl_BillingAddress.Size = New System.Drawing.Size(123, 25)
Me.lbl_BillingAddress.TabIndex = 4
Me.lbl_BillingAddress.Text = "Billing Address"
'
'txt_PhoneNumber
'
'
'
'
Me.txt_PhoneNumber.CustomButton.Image = Nothing
Me.txt_PhoneNumber.CustomButton.Location = New System.Drawing.Point(235, 1)
Me.txt_PhoneNumber.CustomButton.Name = ""
Me.txt_PhoneNumber.CustomButton.Size = New System.Drawing.Size(21, 21)
Me.txt_PhoneNumber.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_PhoneNumber.CustomButton.TabIndex = 1
Me.txt_PhoneNumber.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_PhoneNumber.CustomButton.UseSelectable = True
Me.txt_PhoneNumber.CustomButton.Visible = False
Me.txt_PhoneNumber.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_PhoneNumber.Lines = New String(-1) {}
Me.txt_PhoneNumber.Location = New System.Drawing.Point(286, 315)
Me.txt_PhoneNumber.MaxLength = 32767
Me.txt_PhoneNumber.Name = "txt_PhoneNumber"
Me.txt_PhoneNumber.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_PhoneNumber.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_PhoneNumber.SelectedText = ""
Me.txt_PhoneNumber.SelectionLength = 0
Me.txt_PhoneNumber.SelectionStart = 0
Me.txt_PhoneNumber.ShortcutsEnabled = True
Me.txt_PhoneNumber.Size = New System.Drawing.Size(257, 23)
Me.txt_PhoneNumber.TabIndex = 9
Me.txt_PhoneNumber.UseSelectable = True
Me.txt_PhoneNumber.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_PhoneNumber.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_PhoneNumber
'
Me.lbl_PhoneNumber.AutoSize = True
Me.lbl_PhoneNumber.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_PhoneNumber.Location = New System.Drawing.Point(286, 287)
Me.lbl_PhoneNumber.Name = "lbl_PhoneNumber"
Me.lbl_PhoneNumber.Size = New System.Drawing.Size(129, 25)
Me.lbl_PhoneNumber.TabIndex = 8
Me.lbl_PhoneNumber.Text = "Phone Number"
'
'txt_FaxNumber
'
'
'
'
Me.txt_FaxNumber.CustomButton.Image = Nothing
Me.txt_FaxNumber.CustomButton.Location = New System.Drawing.Point(235, 1)
Me.txt_FaxNumber.CustomButton.Name = ""
Me.txt_FaxNumber.CustomButton.Size = New System.Drawing.Size(21, 21)
Me.txt_FaxNumber.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_FaxNumber.CustomButton.TabIndex = 1
Me.txt_FaxNumber.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_FaxNumber.CustomButton.UseSelectable = True
Me.txt_FaxNumber.CustomButton.Visible = False
Me.txt_FaxNumber.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_FaxNumber.Lines = New String(-1) {}
Me.txt_FaxNumber.Location = New System.Drawing.Point(23, 315)
Me.txt_FaxNumber.MaxLength = 32767
Me.txt_FaxNumber.Name = "txt_FaxNumber"
Me.txt_FaxNumber.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_FaxNumber.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_FaxNumber.SelectedText = ""
Me.txt_FaxNumber.SelectionLength = 0
Me.txt_FaxNumber.SelectionStart = 0
Me.txt_FaxNumber.ShortcutsEnabled = True
Me.txt_FaxNumber.Size = New System.Drawing.Size(257, 23)
Me.txt_FaxNumber.TabIndex = 7
Me.txt_FaxNumber.UseSelectable = True
Me.txt_FaxNumber.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_FaxNumber.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_FaxNumber
'
Me.lbl_FaxNumber.AutoSize = True
Me.lbl_FaxNumber.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_FaxNumber.Location = New System.Drawing.Point(23, 287)
Me.lbl_FaxNumber.Name = "lbl_FaxNumber"
Me.lbl_FaxNumber.Size = New System.Drawing.Size(105, 25)
Me.lbl_FaxNumber.TabIndex = 6
Me.lbl_FaxNumber.Text = "Fax Number"
'
'txt_Email
'
'
'
'
Me.txt_Email.CustomButton.Image = Nothing
Me.txt_Email.CustomButton.Location = New System.Drawing.Point(498, 1)
Me.txt_Email.CustomButton.Name = ""
Me.txt_Email.CustomButton.Size = New System.Drawing.Size(21, 21)
Me.txt_Email.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_Email.CustomButton.TabIndex = 1
Me.txt_Email.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_Email.CustomButton.UseSelectable = True
Me.txt_Email.CustomButton.Visible = False
Me.txt_Email.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_Email.Lines = New String(-1) {}
Me.txt_Email.Location = New System.Drawing.Point(23, 369)
Me.txt_Email.MaxLength = 32767
Me.txt_Email.Name = "txt_Email"
Me.txt_Email.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_Email.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_Email.SelectedText = ""
Me.txt_Email.SelectionLength = 0
Me.txt_Email.SelectionStart = 0
Me.txt_Email.ShortcutsEnabled = True
Me.txt_Email.Size = New System.Drawing.Size(520, 23)
Me.txt_Email.TabIndex = 11
Me.txt_Email.UseSelectable = True
Me.txt_Email.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_Email.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_Email
'
Me.lbl_Email.AutoSize = True
Me.lbl_Email.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_Email.Location = New System.Drawing.Point(23, 341)
Me.lbl_Email.Name = "lbl_Email"
Me.lbl_Email.Size = New System.Drawing.Size(53, 25)
Me.lbl_Email.TabIndex = 10
Me.lbl_Email.Text = "Email"
'
'txt_Serial
'
'
'
'
Me.txt_Serial.CustomButton.Image = Nothing
Me.txt_Serial.CustomButton.Location = New System.Drawing.Point(476, 2)
Me.txt_Serial.CustomButton.Name = ""
Me.txt_Serial.CustomButton.Size = New System.Drawing.Size(41, 41)
Me.txt_Serial.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
Me.txt_Serial.CustomButton.TabIndex = 1
Me.txt_Serial.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
Me.txt_Serial.CustomButton.UseSelectable = True
Me.txt_Serial.CustomButton.Visible = False
Me.txt_Serial.FontSize = MetroFramework.MetroTextBoxSize.Medium
Me.txt_Serial.Lines = New String(-1) {}
Me.txt_Serial.Location = New System.Drawing.Point(23, 423)
Me.txt_Serial.MaxLength = 32767
Me.txt_Serial.Multiline = True
Me.txt_Serial.Name = "txt_Serial"
Me.txt_Serial.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
Me.txt_Serial.ScrollBars = System.Windows.Forms.ScrollBars.None
Me.txt_Serial.SelectedText = ""
Me.txt_Serial.SelectionLength = 0
Me.txt_Serial.SelectionStart = 0
Me.txt_Serial.ShortcutsEnabled = True
Me.txt_Serial.Size = New System.Drawing.Size(520, 46)
Me.txt_Serial.TabIndex = 13
Me.txt_Serial.UseSelectable = True
Me.txt_Serial.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
Me.txt_Serial.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
'
'lbl_Serial
'
Me.lbl_Serial.AutoSize = True
Me.lbl_Serial.FontSize = MetroFramework.MetroLabelSize.Tall
Me.lbl_Serial.Location = New System.Drawing.Point(23, 395)
Me.lbl_Serial.Name = "lbl_Serial"
Me.lbl_Serial.Size = New System.Drawing.Size(53, 25)
Me.lbl_Serial.TabIndex = 12
Me.lbl_Serial.Text = "Serial"
'
'MetroButton1
'
Me.MetroButton1.FontSize = MetroFramework.MetroButtonSize.Tall
Me.MetroButton1.Location = New System.Drawing.Point(23, 475)
Me.MetroButton1.Name = "MetroButton1"
Me.MetroButton1.Size = New System.Drawing.Size(126, 51)
Me.MetroButton1.TabIndex = 14
Me.MetroButton1.Text = "MetroButton1"
Me.MetroButton1.UseSelectable = True
'
'MetroButton2
'
Me.MetroButton2.FontSize = MetroFramework.MetroButtonSize.Tall
Me.MetroButton2.Location = New System.Drawing.Point(417, 475)
Me.MetroButton2.Name = "MetroButton2"
Me.MetroButton2.Size = New System.Drawing.Size(126, 51)
Me.MetroButton2.TabIndex = 15
Me.MetroButton2.Text = "MetroButton2"
Me.MetroButton2.UseSelectable = True
'
'frm_CompanyInformation
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle
Me.ClientSize = New System.Drawing.Size(565, 548)
Me.ControlBox = False
Me.Controls.Add(Me.MetroButton2)
Me.Controls.Add(Me.MetroButton1)
Me.Controls.Add(Me.txt_Serial)
Me.Controls.Add(Me.lbl_Serial)
Me.Controls.Add(Me.txt_Email)
Me.Controls.Add(Me.lbl_Email)
Me.Controls.Add(Me.txt_PhoneNumber)
Me.Controls.Add(Me.lbl_PhoneNumber)
Me.Controls.Add(Me.txt_FaxNumber)
Me.Controls.Add(Me.lbl_FaxNumber)
Me.Controls.Add(Me.txt_BillingAddress)
Me.Controls.Add(Me.lbl_BillingAddress)
Me.Controls.Add(Me.txt_PhysicalAddress)
Me.Controls.Add(Me.lbl_PhysicalAddress)
Me.Controls.Add(Me.txt_CompanyName)
Me.Controls.Add(Me.lbl_CompanyName)
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frm_CompanyInformation"
Me.Resizable = False
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
Me.Style = MetroFramework.MetroColorStyle.Purple
Me.Text = "Company Information"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents lbl_CompanyName As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_CompanyName As MetroFramework.Controls.MetroTextBox
Friend WithEvents txt_PhysicalAddress As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_PhysicalAddress As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_BillingAddress As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_BillingAddress As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_PhoneNumber As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_PhoneNumber As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_FaxNumber As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_FaxNumber As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_Email As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_Email As MetroFramework.Controls.MetroLabel
Friend WithEvents txt_Serial As MetroFramework.Controls.MetroTextBox
Friend WithEvents lbl_Serial As MetroFramework.Controls.MetroLabel
Friend WithEvents MetroButton1 As MetroFramework.Controls.MetroButton
Friend WithEvents MetroButton2 As MetroFramework.Controls.MetroButton
End Class