CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    thiruvanthapuram
    Posts
    4

    client side scripting

    i put a listbox of height 188px and changed the background color to red. i am getting red color after the bottom border of the list box. how to avoid that extra color after the listbox bottom border?
    ganesh

  2. #2
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309
    The problem is the control is drawn in sizes not pixels, where you are specifying pixels. What is happening is the box is still being draw to the closests size value but the control is being sized to the pixel value which causes the bleed over to appear. If you use Size=n instead of using a height it will draw right, this is safer. Or if you drop to 182px will be right but it may not look right on all machines.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured