Hi.
I have a form with a lot of controls on it (SSTabs, Frames on the SSTabs, Textboxes, checkboxes, etc. on the Frames, etc).
I have placed a label directly on the form (on the bottom of all the above controls), and I have set the Visible property of this label to False (because usually it must be invisible).
The purpose of this label is to show a message to the user in case something happens.
Let's say I show this message if a Commandbutton is pressed:
It works perfectly.
Now, I change the above code a little bit, to show that message in the middle of the screen:
This does not work. The message does not show.
And the reason is obvious: It is hiding behind all those controls (SSTabs, Frames, Textboxes, etc)
In order to fix this problem and make the message show, I use ZOrder as follows:
But this STILL does not work. The message does not show.
I guess the label is still hiding behind all those controls (SSTabs, Frames, Textboxes, etc) even in spite of ZOrder being set to zero.
But, why?
And how can I fix this?
I need to show this message on the screen, on top of every other control.
How can I do that?
Please advise.
Thanks.
I have a form with a lot of controls on it (SSTabs, Frames on the SSTabs, Textboxes, checkboxes, etc. on the Frames, etc).
I have placed a label directly on the form (on the bottom of all the above controls), and I have set the Visible property of this label to False (because usually it must be invisible).
The purpose of this label is to show a message to the user in case something happens.
Let's say I show this message if a Commandbutton is pressed:
Code:
Private Sub Command1_Click()
Label1.FontBold = True
Label1.FontSize = 14
Label1.Visible = True
End Sub
Now, I change the above code a little bit, to show that message in the middle of the screen:
Code:
Private Sub Command1_Click()
Label1.FontBold = True
Label1.FontSize = 14
Label1.Top = 3000
Label1.Visible = True
End Sub
And the reason is obvious: It is hiding behind all those controls (SSTabs, Frames, Textboxes, etc)
In order to fix this problem and make the message show, I use ZOrder as follows:
Code:
Private Sub Command1_Click()
Label1.FontBold = True
Label1.FontSize = 14
Label1.Top = 3000
Label1.Visible = True
Label1.ZOrder 0
End Sub
I guess the label is still hiding behind all those controls (SSTabs, Frames, Textboxes, etc) even in spite of ZOrder being set to zero.
But, why?
And how can I fix this?
I need to show this message on the screen, on top of every other control.
How can I do that?
Please advise.
Thanks.