Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/03/2011, 10:10
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 10 meses
Puntos: 267
Respuesta: foco en un textbox

Hola Betina232022 si es web podrias hacer como dice aenima_tool :

Cita:
Iniciado por aenima_tool Ver Mensaje
Dentro del textbox agregale la propiedad GotFocus y ponle esto:

Código vb:
Ver original
  1. GotFocus="This.SelStart = LEN(RTRIM(This.Value))"

Ejemplo:

Código vb:
Ver original
  1. <asp:TextBox ID="TextBox4" runat="server" GotFocus="This.SelStart = LEN(RTRIM(This.Value))"></asp:TextBox>
ahora si es winform podrias hacer esto :

Código c#:
Ver original
  1. textBox1.Focus();
  2. textBox1.SelectionStart = textBox1.Text.Length;
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net