I want to set the tabIndex property for a row of textbox(s) that are created at run time (dynamically)
My formula is
txtFirstName.TabIndex = i * 10 + 1;
txtLastName.TabIndex = i * 10 + 2;
txtEMail.TabIndex = i * 10 + 3;
txtPhone.TabIndex = i * 10 + 4;
When I try to compile this, I get an error Cannot implicitly convert type 'int' to 'short'. An explicit conversion exists (are you missing a cast?)
Any ideas?