Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Pavel Murashov
|
Nov 17, 2009 - 2:01 AM
|
I put Elegant.Ui.ComboBox into Elegant.Ui.StatusBar, and fill ComboBox items dynamically in runtime. But ComboBox width size set automatically for first selection item. How I can set width size for ComboBox in StatusBar constantly? Thanks.
|
|
Technical Support
|
Nov 18, 2009 - 6:49 AM
|
The ComboBox control is sized automatically because it has its AutoSize property set to true. In order to specify a custom width use the code like as follows: private void Form1_Load(object sender, EventArgs e)
{
comboBox1.AutoSize = false;
comboBox1.Height = comboBox1.PreferredHeight;
comboBox1.Width = 200;
}
|
|