Click here to Skip to main content
15,878,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created one textbox one list box and one save button.after enetring nubmer or text in textbox and clicking save button it should view in listbox.

Regards
Balamurugan
Posted
Comments
Sandeep Mewara 4-Jan-13 0:47am    
And the issue is?

Sounds trivial. What have you tried ? The list box has an Items collection. That has an Add method.
 
Share this answer
 
Comments
Balamurugan1989 4-Jan-13 0:35am    
For me it should display the records which has been entering in textbox
Christian Graus 4-Jan-13 0:36am    
OK. So, do what I said. Take the text from the text box and put it in to a new item in the list box
Balamurugan1989 4-Jan-13 0:50am    
Ya its working...
This is the coding for adding in listbox.
listbox1.Items.Add(textbox1.Text);
 
Share this answer
 
Comments
fjdiewornncalwe 21-Feb-13 16:47pm    
Again. You have reposted what Christian told you in Solution 1. Why do you take credit for the solution instead of giving it to Christian since he provided you the answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900