Visual Basic - SOY UN NOVATO EN VISUAL...PREGUNTA SENCILLA

Life is soft - evento anual de software empresarial
 
Vista:

SOY UN NOVATO EN VISUAL...PREGUNTA SENCILLA

Publicado por MANUEL (13 intervenciones) el 13/10/2004 15:36:55
Hola amigos, tengo un listbox, un textbox y dos command button. La pregunta es la siguiente:

Lo que quiero hacer es anotar unas cantidades numéricas en el textbox y al pulsar uno de los command button dicha cantidad me aparezca en el listbox y con el otro command button lo que pretendo es que si señalo en el listbox una de las cantidades que ya ingrese este la borre. Me podrian ayudar?

¿Qué código debo colocar en cada control?

Gracias por su ayuda.
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:SOY UN NOVATO EN VISUAL...PREGUNTA SENCILLA

Publicado por BARBARA (15 intervenciones) el 13/10/2004 16:45:12
EN EL PRIMER COMANDO HACES:
LIST1.ADDITEM TEXT1.TEXT
(ESTO ES PARA QUE APAREZCA EN EL LISTBOX)

EN EL SEGUNDO COMANDO HACES:
LIST1.CLEARITEM O ALGO ASI NO ME ACUERDO, Y NO TENGO VISUAL, PERO COMO EXISTE EL ADDITEM PARA INSERTAR, HAY UN CLEAR...(ALGO) PARA BORRARLO.

ESPERO TE SIRVA.
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

RE:SOY UN NOVATO EN VISUAL...PREGUNTA SENCILLA

Publicado por Fabian (501 intervenciones) el 13/10/2004 16:50:07
Private Sub CmdAnidar_Click()
List1.AddItem Val(Text1.Text)
End Sub

Private Sub CmdBorrar_Click()
List1.RemoveItem (List1.ListIndex)
End Sub
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

RE:SOY UN NOVATO EN VISUAL...PREGUNTA SENCILLA

Publicado por Zorro262004 (9 intervenciones) el 20/10/2004 15:32:36
Private Sub Command1_Click()
List1.AddItem Format(Text1.Text, "##,#00.00")
End Sub

Private Sub Command2_Click()
List1.RemoveItem (List1.ListIndex)
End Sub
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