I have a custom Date picker Textbox & Button. I am trying to get the button to not be a part of the Tab series. Below is the code to do this. As I step through in the debugger my value stays a 0 in the <<< line below even though I think I'm setting it to a -1.
Anybody have an idea?
protected override void CreateChildControls()
{
Controls.Clear();
resQWebDateBoxExtdFormat1 = new ResQWebDateBox();
resQWebDateBoxExtdFormat1.EnableViewState =false;
Controls.Add(resQWebDateBoxExtdFormat1);
this.RequiredField = Convert.ToBoolean(ViewState["RequiredField" + this.ID]);
btnCal = new System.Web.UI.WebControls.Button();
Controls.Add(btnCal);
btnCal.Click+= new EventHandler(btnCal_Click);
btnCal.Width = Unit.Pixel(28);
btnCal.Height =Unit.Pixel(28);
btnCal.BackColor = System.Drawing.Color.White;
btnCal.Attributes.Add("ID","btnCal");
btnCal.TabIndex = -1; <<<<< This line here
CreatingCalControl();
// SNIP
TIA