d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Vb > Calculator..
Add Reply New Topic New Poll
Member
Posts: 3,486
Joined: Mar 18 2012
Gold: 206.67
Sep 19 2012 06:16pm
So, im making a calculator right now and i dont know why the input won't show in the listbox....

this is my code:

Label2.Text = "+"
lstResults.Text = Val(TextBox1.Text) + Val(TextBox2.Text)

any quick and helpful responses will result in a donation
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Sep 19 2012 11:16pm
why are you using a list box if you want to set the text? i recommend either switching to a text box or clearing the list box, adding the value, then selecting it.

if you have other items in your listbox, perhaps the selected one's text is showing? you didnt really explain what's happening, debug it, or log it, so i have to guess.

This post was edited by carteblanche on Sep 19 2012 11:17pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll