-
If I have a label on my form and then draw a frame over that label, the label will be invisible, because it will be under the frame; right? Now how can make it visible????? I want the label to be on top of the ZOrder (and I don't want the frame to contain the label)
HYKWIM
-
The problem is - labels are windowless controls. This means that they can only draw onto their container, in this case your form. The only way it can draw onto the frame is if the frame was its container.
-
Uh....
I think frames have up most ZOrder, except for maybe timers, other invisible shiyat(funny word).
-
You can't... well at least not in any way I know of.
The whole point of having a frame is that it is the topmost object unless you cover it with another frame.
What reason could you possibly want to display a label OVER a frame but not have it part of the frame?
-
<?>
Is it you don't want anything to sit on the frame or some reason the label shouldn't?
-
This is a late reply, but for future reference I believe you can place the label in a PictureBox, then place the PictureBox on top of the frame. Make the PictureBox the same size as the label. :)
-
Well, since this was at the top of the list, even though the subject started so long ago, here's my two cents, in
case anybody's listining.
If the label doesn't need to be seen all the time, whenever it does need to be seen, the frame control
could be triggered to visible = false. Then when the label doesn't need to be seen, the frame could be set back to visible = true.
Just for a test, I placed a label on a form, then covered it with a frame. I then made a command1 buttun, then placed this code into its click procedure:
Private Sub Command1_Click()
Select Case Frame1.Visible- Case True
Frame1.Visible = False
Case False
Frame1.Visible = True
End Select
End Sub
:Then, when I want to see the label, I click the button. And when I want to hide the label, I Unclick it.
Of course, the label could be placed inside a second frame, and that could be above the first frame.
Just a thought.