this is the user control which size increase automatically when i built. here is my designer code. In my vb file i just bind checklisbox.
<
Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial
Class UCFinancialStatement
Inherits System.Windows.Forms.UserControl
'UserControl overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
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.ChkListBoxFinancialStatement = New System.Windows.Forms.CheckedListBox
Me.SuspendLayout()
'
'ChkListBoxFinancialStatement
'
Me.ChkListBoxFinancialStatement.CheckOnClick = True
Me.ChkListBoxFinancialStatement.FormattingEnabled = True
Me.ChkListBoxFinancialStatement.Location = New System.Drawing.Point(3, 1)
Me.ChkListBoxFinancialStatement.Name = "ChkListBoxFinancialStatement"
Me.ChkListBoxFinancialStatement.ScrollAlwaysVisible = True
Me.ChkListBoxFinancialStatement.Size = New System.Drawing.Size(141, 64)
Me.ChkListBoxFinancialStatement.TabIndex = 0
'
'UCFinancialStatement
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Controls.Add(Me.ChkListBoxFinancialStatement)
Me.Name = "UCFinancialStatement"
Me.Size = New System.Drawing.Size(145, 67)
Me.ResumeLayout(False)
End Sub
Friend WithEvents ChkListBoxFinancialStatement As System.Windows.Forms.CheckedListBox
End
Class
Ather...