Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Controls Tab Index within?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Custom Controls Tab Index within?
Divers
Thread ID:
00859512
Message ID:
00859512
Vues:
56
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
Répondre
Fil
Voir

Click here to load this message in the networking platform