Results 1 to 6 of 6

Thread: Z-index

  1. #1

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Z-index

    I'm trying to alter Z-INDEX on one of my labels to cover up other controls on my page. It covers textboxes and other labels, but not comboboxes. Any ideas on how to cover these guys up (temporarily). I'm not using the Visible property because several of the controls on my page are not visible by default, and it would be a pain to figure out wich controls to leave invisable when I need my main form back. I did attempt to make a seperate form, and pass back the value I need (1 string) but failed misserably.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: Z-index

    You won't be able to cover up a combobox. The way windows uses a combobox will always place it higher than anything else on the screen. Your only option is to implement sound logic to hide/show controls.

  3. #3

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Z-index

    How difficult would it be to open a second window, consisting of a button and a listbox, then pass the selected listbox value back to the main page?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Z-index

    Not very difficult. You can access elements on the parent page by using javascript's window.opener object.

  5. #5

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Z-index

    Thank you, I'll look into that. Temporarily I'm setting the ddl's back and for color to match the label's, as a kind of camoflauge. But it's still pretty hokey.

  6. #6

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Z-index

    I've found a few examples, but they mostly deal with populating a text box with a selected calander value, and I couldn't get them to work. I would like to pass back a listbox value as a string, after a button click event.

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