can set up an image as the listbox's background

Discussion in 'ASP .Net Web Controls' started by haiwen, Aug 15, 2003.

  1. haiwen

    haiwen Guest

    hello, everyone:

    I am try to set up an image background for the ListBox Web
    control.
    but no matter I use style="BACKGROUND-IMAGE:url
    http://myserver/Project1/back.jpg)" at design time or
    add code:
    ListBox1.Style.Add("BACKGROUND-IMAGE",
    "url(http://myserver/Project1/back.jpg)")

    Both of them do not work anyway. Could anyone know how to
    set up the image as listbox's background.

    I do appreciate your help.

    haiwen
    haiwen, Aug 15, 2003
    #1
    1. Advertising

  2. Hi Haiwen,

    Thanks for your posting. I am checking this issue, and will get back to you
    with my findings.

    Best regards,
    Lewis

    This posting is provided "AS IS" with no warranties, and confers no rights.



    --------------------
    | Content-Class: urn:content-classes:message
    | From: "haiwen" <>
    | Sender: "haiwen" <>
    | Subject: can set up an image as the listbox's background
    | Date: Fri, 15 Aug 2003 07:34:52 -0700
    | Lines: 17
    | Message-ID: <005d01c3633a$63c6c5d0$>
    | MIME-Version: 1.0
    | Content-Type: text/plain;
    | charset="iso-8859-1"
    | Content-Transfer-Encoding: 7bit
    | X-Newsreader: Microsoft CDO for Windows 2000
    | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    | Thread-Index: AcNjOmPG/r29YIl6RYuptZHLZXoIiw==
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    | Path: cpmsftngxa06.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:13972
    | NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    |
    | hello, everyone:
    |
    | I am try to set up an image background for the ListBox Web
    | control.
    | but no matter I use style="BACKGROUND-IMAGE:url
    | http://myserver/Project1/back.jpg)" at design time or
    | add code:
    | ListBox1.Style.Add("BACKGROUND-IMAGE",
    | "url(http://myserver/Project1/back.jpg)")
    |
    | Both of them do not work anyway. Could anyone know how to
    | set up the image as listbox's background.
    |
    | I do appreciate your help.
    |
    | haiwen
    |
    |
    Lewis Wang [MSFT], Aug 18, 2003
    #2
    1. Advertising

  3. Hi haiwen,

    Some controls like button, textbox have the backgroundImage style, but
    listbox(select element) does not have this style.

    You may check the following link for more information:

    <http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re
    ference/objects/select.asp>


    Hope this helps.

    Best regards,
    Lewis

    --------------------
    | X-Tomcat-ID: 229528433
    | References: <005d01c3633a$63c6c5d0$>
    | MIME-Version: 1.0
    | Content-Type: text/plain
    | Content-Transfer-Encoding: 7bit
    | From: (Lewis Wang [MSFT])
    | Organization: Microsoft
    | Date: Mon, 18 Aug 2003 11:57:05 GMT
    | Subject: RE: can set up an image as the listbox's background
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    | Message-ID: <PoCJc$>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    | Lines: 40
    | Path: cpmsftngxa06.phx.gbl
    | Xref: cpmsftngxa06.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webcontrols:14005
    | NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
    |
    | Hi Haiwen,
    |
    | Thanks for your posting. I am checking this issue, and will get back to
    you
    | with my findings.
    |
    | Best regards,
    | Lewis
    |
    | This posting is provided "AS IS" with no warranties, and confers no
    rights.
    |
    |
    |
    | --------------------
    | | Content-Class: urn:content-classes:message
    | | From: "haiwen" <>
    | | Sender: "haiwen" <>
    | | Subject: can set up an image as the listbox's background
    | | Date: Fri, 15 Aug 2003 07:34:52 -0700
    | | Lines: 17
    | | Message-ID: <005d01c3633a$63c6c5d0$>
    | | MIME-Version: 1.0
    | | Content-Type: text/plain;
    | | charset="iso-8859-1"
    | | Content-Transfer-Encoding: 7bit
    | | X-Newsreader: Microsoft CDO for Windows 2000
    | | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    | | Thread-Index: AcNjOmPG/r29YIl6RYuptZHLZXoIiw==
    | | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
    | | Path: cpmsftngxa06.phx.gbl
    | | Xref: cpmsftngxa06.phx.gbl
    | microsoft.public.dotnet.framework.aspnet.webcontrols:13972
    | | NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
    | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
    | |
    | | hello, everyone:
    | |
    | | I am try to set up an image background for the ListBox Web
    | | control.
    | | but no matter I use style="BACKGROUND-IMAGE:url
    | | http://myserver/Project1/back.jpg)" at design time or
    | | add code:
    | | ListBox1.Style.Add("BACKGROUND-IMAGE",
    | | "url(http://myserver/Project1/back.jpg)")
    | |
    | | Both of them do not work anyway. Could anyone know how to
    | | set up the image as listbox's background.
    | |
    | | I do appreciate your help.
    | |
    | | haiwen
    | |
    | |
    |
    |
    Lewis Wang [MSFT], Aug 20, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bogosian
    Replies:
    4
    Views:
    614
    Chris Jackson
    Jan 7, 2004
  2. COHENMARVIN
    Replies:
    1
    Views:
    557
    =?Utf-8?B?U3JlZWppdGggUmFtKE1DU0QuTkVUKQ==?=
    Oct 14, 2005
  3. jc
    Replies:
    3
    Views:
    1,717
  4. jc
    Replies:
    1
    Views:
    1,357
    Neredbojias
    Mar 19, 2008
  5. Dj Frenzy
    Replies:
    3
    Views:
    297
    Robert
    Feb 10, 2004
Loading...

Share This Page