I have figured out that a control's order (objects with higher order are displayed above all subordered controls) can be manipulated to some extent with the .ZOrder command.
Lets say that you have a text box placed over a command box, and because the text box is of 'higher order', you cannot see the command button. The above code will bring it forth above the textbox.VB Code:
Command1.ZOrder (0) ' brings forth
This works in a simple example as in the one I gave above. But when implemented into a more complex situation, it doesn't seem to work. I have my control in the correct container, and is visible etc. Can somebody ******** this .ZOrder command.VB Code:
Command1.ZOrder (1) ' sends back
VB Code:
For X = 1 To Form1.Count Label9.ZOrder (0) Next X ' This doesnt not work :(




Reply With Quote