Visual Basic - COMO DAR FORMATO A UN MUNERO ESPECIFICO

Life is soft - evento anual de software empresarial
 
Vista:

COMO DAR FORMATO A UN MUNERO ESPECIFICO

Publicado por Jorge (67 intervenciones) el 16/08/2003 01:03:57
HOLA AMIGOS
Como puedo hacer que un tetbox me ponga el formato numérico a medida que voy ingresando los números ej
escribo 1234 y me ponga 1.234 si agrego el 5 sea 12.345 y si quito el 5 me ponga 1.234
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:COMO DAR FORMATO A UN MUNERO ESPECIFICO

Publicado por Juan (284 intervenciones) el 16/08/2003 11:47:59
Prueba con esto:

Private Sub Text1_Change()
Dim posSel As Long
posSel = Text1.SelStart
Text1.Text = Format(Text1.Text, "###,###")
Text1.SelStart = posSel + 1
End Sub

Cambia donde ponet Text1 por el nombre de tu textBox
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar