Results 1 to 6 of 6

Thread: [RESOLVED] Send CheckBox Behind Image

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Resolved [RESOLVED] Send CheckBox Behind Image

    I have created a web browser using the WebBrowser control. Apart from a few controls, the Form has a CheckBox & an Image control as shown in the 1st image attached.

    Now when I resize the Form, I find that when the width of the Form decreases considerably the CheckBox covers the Image as shown in the 2nd image attached. How do I prevent the CheckBox from covering the Image under such circumstances?

    I tried setting the ZOrder of both the CheckBox & the Image but that doesn't help.
    Attached Images Attached Images   


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Send CheckBox Behind Image

    Why not just do the same thing you did to the address bar, which seems to have disappeared.

  3. #3
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Send CheckBox Behind Image

    I see where the globe image stays behind the checkbox. What is the difference the globe image and the right arrow image? Are those really images in a picturebox or image control or are they buttons on a menu strip control?

  4. #4
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Send CheckBox Behind Image

    Personally I'd put the block pop-ups option in the menu and just get rid of the check box.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Send CheckBox Behind Image

    The Image control (like the Label control) is lightweight, so cannot be "in front" of normal controls (ones which have an hWnd property, like a TextBox etc).

    If you want it in front, use a PictureBox instead.

  6. #6

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Send CheckBox Behind Image

    Yes.....replacing the Image with a PictureBox does resolve the problem.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

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