I having an issue with it comes to Inheriting a UserControl. Everything works, but it won't show controls that I add into the design mode when running the debug mode. The controls shows fine in design mode, but when running it in debug it don't show.
Code:
Partial Public Class UCPMField
Public Enum eFieldStatus As Integer
RequiredEmpty
NotRequiredEmpty
NotEmpty
End Enum
Public Property ID As Integer
Public Property Required As Boolean
End Class
Code:
Partial Public Class UCPMNumericField
Inherits UCPMField
Friend WithEvents Button1 As System.Windows.Forms.Button
Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(23, 50)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(75, 23)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Button1"
Me.Button1.UseVisualStyleBackColor = True
'
'UCPMNumericField
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.Controls.Add(Me.Button1)
Me.Name = "UCPMNumericField"
Me.Size = New System.Drawing.Size(141, 123)
Me.Controls.SetChildIndex(Me.Button1, 0)
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Private Sub UCPMNumericField_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class