0
I’m trying to move a Textbox that was created via code, down. Follow the code where I create and add the button:
private DVJPetControles.TextBox txtHorarioCheckin;
this.txtHorarioCheckin.TituloLabel = "Horário de Check-in";
this.txtHorarioCheckin.TxtPrincipalMask = "00:00";
this.txtHorarioCheckin.TxtPrincipalTextAlign =
HorizontalAlignment.Center;
this.txtHorarioCheckin.Size = new System.Drawing.Size(189, 45);
this.txtHorarioCheckin.TabIndex =
chkPreAgendarApenasConcluido.TabIndex + 1;
this.txtHorarioCheckin.Tipo = DVJPetControles.textBoxTipo.Hora;
this.txtHorarioCheckin.Leave += new
System.EventHandler(this.txtHorarioCheckin_Leave);
flpPetshop.Controls.Add(this.txtHorarioCheckin);
Soon after I try to put him down:
this.txtHorarioCheckin.Top += 200;
I followed by Debug and realized that even changing his top, it keeps a fixed value in the top.
I’ve tried it this way too:
this.txtHorarioCheckin.Location = new Point(200, 200)
What control is the
flpPetShop
?– João Martins
@Gabrielhenrique Soon after when?
– Leandro Angelo