秦风意动
04-07-2007, 01:34 PM
As I known, a control has a Z-order in it's container in VB6.0.
It's decided a control 's position of the vertical direction,and
we can changed the position with Z-order in my code at the runtime.
but I can't find it in Dotnet's Controls.
when a component is initialized,it happens as follow:
//
TextBox txtName .....
TextBox txtPassword .....
this.controls.add(txtName );
this.controls.add(txtPassword );
//
And then txtName's Z-Order is greater then txtPassword .
If we change txtPassword to the Top in Form Designer,
the code in "Designer.cs" has change:
//
this.controls.add(txtPassword );
this.controls.add(txtName );
//
The problem is :
How can we dynamically change a control's Z-Order in the code at the
runtime?
I have no idea.
Thanks.
-----------------------------------
PS: It's the first time I write some words in English on the Network.
And my English is very poor, but I'll improve it,I'm sure.
It's decided a control 's position of the vertical direction,and
we can changed the position with Z-order in my code at the runtime.
but I can't find it in Dotnet's Controls.
when a component is initialized,it happens as follow:
//
TextBox txtName .....
TextBox txtPassword .....
this.controls.add(txtName );
this.controls.add(txtPassword );
//
And then txtName's Z-Order is greater then txtPassword .
If we change txtPassword to the Top in Form Designer,
the code in "Designer.cs" has change:
//
this.controls.add(txtPassword );
this.controls.add(txtName );
//
The problem is :
How can we dynamically change a control's Z-Order in the code at the
runtime?
I have no idea.
Thanks.
-----------------------------------
PS: It's the first time I write some words in English on the Network.
And my English is very poor, but I'll improve it,I'm sure.