CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Location
    India, Nickname: Diabolic Diablo
    Posts
    73

    Question Working with select option

    hi,

    I've been able to apply styles to text fields, and other related components while creating a form. But i am unable to apply any styles to drop down menu (i am referring to the base display when the form gets loaded, NOT the pulled down menu portion).

    Can anyone suggest me how to override the default styles of the drop down box?

    Regards,
    Kalyan Chakravarthy
    Attached Images Attached Images
    • File Type: jpg 1.jpg (2.5 KB, 79 views)
    Last edited by techie_kalyan; March 11th, 2005 at 01:10 AM. Reason: Added image

    Kalyan Chakravarthy C.P.S


    "The difference between the possible and the impossible lies in a person's determination and patience."

  2. #2
    Join Date
    Jul 2002
    Location
    India
    Posts
    505

    Re: Working with select option

    This changes the foreground and background color if that is what you mean.

    <style type="text/css">
    SELECT
    {
    color: #330099;
    background-color: #cc0fff;
    }
    </style>

    -Satish

  3. #3
    Join Date
    Oct 2004
    Location
    India, Nickname: Diabolic Diablo
    Posts
    73

    Question Re: Working with select option

    Hi,

    This is ok. Foreground, background, fonts... all these are fine. the problem is with borders. I want a border.

    In short, I want my drop down menu, similar to the textfield I have in the attached picture.

    regards,
    Kalyan Chakravarthy

    Kalyan Chakravarthy C.P.S


    "The difference between the possible and the impossible lies in a person's determination and patience."

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