473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DDL Height - Setting it has no effect?

According to online help, the DropDownList control
(System.Web.UI.WebControls.DropDownList) has a .Height property.

I found that setting it seems to have no effect.

MyDDL.Height = Unit.Pixel(10); //I've tried other settings for Unit as
well.

I'm testing in IE 6/sp1 - so we're not dealing with downlevel browser
support issues.

What does it take to set the height of a DropDownList?

Thanks.
Nov 18 '05 #1
2 1211
You can only set it by adjusting the font size of the text in the
DropDownList.

Dale Preston
MCAD, MCSE, MCDBA
"Doug" <Cl******@Livermore.com> wrote in message
news:#l**************@TK2MSFTNGP10.phx.gbl...
According to online help, the DropDownList control
(System.Web.UI.WebControls.DropDownList) has a .Height property.

I found that setting it seems to have no effect.

MyDDL.Height = Unit.Pixel(10); //I've tried other settings for Unit as
well.

I'm testing in IE 6/sp1 - so we're not dealing with downlevel browser
support issues.

What does it take to set the height of a DropDownList?

Thanks.

Nov 18 '05 #2
Okay - I can live with that.
....too bad online help doesn't mention that. It has a list of scenarios in
which the .Height property doesn't work. This should be included in that
list IMHO.


"Dale" <da************@msndotcomNot.Net> wrote in message
news:ux**************@TK2MSFTNGP09.phx.gbl...
You can only set it by adjusting the font size of the text in the
DropDownList.

Dale Preston
MCAD, MCSE, MCDBA
"Doug" <Cl******@Livermore.com> wrote in message
news:#l**************@TK2MSFTNGP10.phx.gbl...
According to online help, the DropDownList control
(System.Web.UI.WebControls.DropDownList) has a .Height property.

I found that setting it seems to have no effect.

MyDDL.Height = Unit.Pixel(10); //I've tried other settings for Unit as
well.

I'm testing in IE 6/sp1 - so we're not dealing with downlevel browser
support issues.

What does it take to set the height of a DropDownList?

Thanks.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jason Bassford | last post by:
Okay, What I'm trying to do is create two boxes, one on top of the other. The first is a static height, the 2nd, underneath it, should take up the remaining amount of screen space and overflow...
2
by: Sina Tootoonian | last post by:
Hello everyone and thanks in advance. I am having a very simple but frustrating problem with IE 6.0. I have a style defined as: ..tooltip{ background-color:#FFFF99; font-family: Arial,...
2
by: Oenone | last post by:
I'm trying to create a form similar to a VB messagebox but with custom content. One of the things I want to be able to do is display some text in a label at the top of the messagebox form and have...
2
by: JimO | last post by:
I know IE doesnt' support a max-height property. I'm just curious, though, if there is a way to stop my #container height from growing every time I put something in it. I've tried to give it an...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
13
by: Haines Brown | last post by:
I have a style for a list: dl { line-height: 1; margin-bottom: 1em; } But the W3C CSS validator says: Line: 124 Context : dl Invalid number : line-height Parse Error -
1
by: astrochelonian | last post by:
Hello, all, First time I post, so I beg for everyone's patience. I am writing because I have the following doubt. in the page http://atuin.no-ip.org, you can see a blue-grey bar stretching...
2
by: rowe_newsgroups | last post by:
Hello all, I have something I believe is something simple, but I can't seem to figure out what to do. I did some searching, but I either can't get my search right. Anyways, on a new webpage I'm...
0
by: erdavila | last post by:
With a code like this: <table> <tr> <td> <div style="height: 7px; overflow: hidden;"> Cell A </div> </td> <td>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.