expanding dropdownlist control values width dynamically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a dropdownlist control on my form whose width is specified. It is loaded with values at runtime. If some value with greater width than the specified width of the combo, the whole value doesn't appear.I want the control to have fixed width but when clicked , values will large width are shown completely. Many thanks in advance
 
Autosize property will probably adjust the width of the whole control according to the values contained...but i want the dropdownlist control to keep its width, & upon clicking, only the drop down portion should expand displaying the whole value. You can see what i want by viewing the properties of any control in .NET environment so that the width of the properties window is kept small, and viewing the options say, the 'visible' property, the width of that combo being small, & when u click it, the values true & False appear in their whole text
Regard

----- Antenna wrote: ----

You mean you want a AutoSize property for ComboBox

Imran wrote
 
Imran said:
Autosize property will probably adjust the width of the whole
control according to the values contained...but i want the
dropdownlist control to keep its width, & upon clicking, only the drop
down portion should expand displaying the whole value. You can see
what i want by viewing the properties of any control in .NET
environment so that the width of the properties window is kept small,
and viewing the options say, the 'visible' property, the width of that
combo being small, & when u click it, the values true & False appear
in their whole text.


Have a look at the DropDownWidth property

--Steve
 
----- SteveV wrote: -----

Imran said:
Autosize property will probably adjust the width of the whole
control according to the values contained...but i want the
dropdownlist control to keep its width, & upon clicking, only the drop
down portion should expand displaying the whole value. You can see
what i want by viewing the properties of any control in .NET
environment so that the width of the properties window is kept small,
and viewing the options say, the 'visible' property, the width of that
combo being small, & when u click it, the values true & False appear
in their whole text.


Have a look at the DropDownWidth property

--Steve

thats exactly what I want but problem is that DropDownWidth property is not there for System.Web.UI.WebControls.DropDownList control which I am using in VB.NET, this property is there for System.Windows.Forms.ComboBox() which I can't use in VB.NET. Anyways, thanks alot, will keep looking for my solution
 
Back
Top