Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > User control size increase automatically
 

User control size increase automatically

i create a user control UCDateToAndFrom. the problem is that wheni build myContols this Date control size automatically increase . if i built it again than control size more increase. Can anyone tell me .....whats the problem


Ather...
Ather.Abbas  Saturday, August 22, 2009 4:50 AM
Hi,

The issue is so strange please show me a code of UserContorl to find out the problem.

In my thinkig if you have set AutoSize property true. and the control where are u placing it is dockable to parent. so check the autosize property 'false' and dock to parent none it may helpfull to resolve the issue.

good luck
Malik M.Shahid  Saturday, August 22, 2009 12:21 PM

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Best regards,
Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Sunday, August 30, 2009 1:20 PM
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...
Ather.Abbas  Saturday, September 05, 2009 4:54 AM

You can use google to search for other answers

Custom Search

More Threads

• BindingSource AddNew with grandchild table
• need help with custom control
• DataBinding - Won't bind when I search twice for same name?
• How to disable select all (corner-button) DataGridView?
• Insert into statement
• SQL DataAdapter.Update(Dataset) Method is not working
• Bindingcontext / currancymanager problem
• Filter datagridview
• ComboBox ValueMember Binding Issue
• Tab Control: Activate Data Binding on Tab Child controls without having to view the tab