CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    label over picbox

    hi

    I know a label won't appear OVER a picture box - but if you really, really must have a label OVER a picture box - an image just won't do, sadly - then how do you do it?

    Many thanks

    Phil



  2. #2
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: label over picbox

    You could
    1: Put the label into the picturebox
    2: Use a texbox but set its border to none and its backcolour to grey so that it looks like a label.A textbox will show above a picturebox
    3:Make the picturebox transparent so that the label shows through


  3. #3
    Join Date
    Nov 2000
    Location
    Tokyo and Memphis
    Posts
    238

    Re: label over picbox

    Thanks very much but ... ah, there's always one

    >1: Put the label into the picturebox

    Man, there's all sorts of resizing and stacks of labels and boy that would cause a lot of work adding and sizing all those picture boxes. had thought of that but was hoping there's be a simpler way.

    >2: Use a texbox but set its border to none and >its backcolour to grey so that it looks like a >label.A textbox will show above a picturebox

    Had thought of that with disabling it and the other stuff but the reason it's a label was the resizing and simplicity and the fact that it is a caption which gels with the command buttons I have and the for each cnt in controls that sets this that and the other - this is a massive app - well, it's billions of lines of code - none of it good and ... well, you get the picture.

    >3:Make the picturebox transparent so that the >label shows through

    The label isn't in the picture box - the picture boxes are everywhere in the background and the labels appear later - over all of them - or not as the case may be.

    I've plugged away doing it with a image boxes and - you know how they are - always flashing and stuff - annoying beasts, never liked them. Anyway, just poked the programming enough to make the flashes stop and it just about works - so, thank you anyway. Hope I didn't rattle on to long.

    Thanks again.

    Phil



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