Z-Index doesn't work :s

May 21, 2013 at 10:50 AM
Hi,

i just want to say that the ZIndex property doesn't work at all.
i've tryed many time and with a different controles, no way,
//username
username = new RamGecXNAControls.TextBox(new Rectangle(410, 240, 120, 25), "");
username.Focused = true;
username.ZIndex = 1;
RamGecContainer.Controls.Add(username);

// password RamGecControles
password = new RamGecXNAControls.TextBox(new Rectangle(410, 266, 120, 25), "");
password.Focused = false;
password.PasswordField = true;
password.ZIndex = 2;
RamGecContainer.Controls.Add(password);
well if i reverse the ZIndex of these texteBox as below :
username.ZIndex = 2;
...
password.ZIndex = 1;
it still show me the same result, the password TextBox is always in top even if i change the ZIndex property to mothing more higher ->100.

in my case ZIndex is very important to my game.

thx in advance