.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

List box problem

Posted By: kamlesh     Posted Date: August 25, 2011    Points:5   Category :C#
hi i have one list box and one button i want to store multiple items when user click on button and that will select items to show onto list box
how it is possible in C#

Responses
Author: Narayanan             
Posted Date: August 25, 2011     Points: 20   

Hi,
http://en.csharp-online.net/ListBox
http://www.c-sharpcorner.com/UploadFile/devinderarora/ListBoxDA00111182005034107AM/ListBoxDA001.aspx

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
Author: Amit Mehra             
Posted Date: August 25, 2011     Points: 20   

Hi,

Sorry your question is not clear..where you want to store list box items selection?

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: kamlesh             
Posted Date: August 26, 2011     Points: 20   

sorry i want to store selected items from listview control to one string

Thanks And Regards.
Kamlesh Nikam
Author: Sasi Prabhu             
Posted Date: August 29, 2011     Points: 20   

Try :

string ListSelected="";
foreach(ListItem lstm in Listbox1.Items)
{
if(lstm.Selected==true)
{
ListSelected=ListSelected+","+lstm.Text;
}
}




Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: August 29, 2011     Points: 20   

try these as

http://www.dotnetperls.com/listbox

http://www.java2s.com/Code/ASP/Asp-Control/GetselecteditemfromListBoxC.htm

http://www.homeandlearn.co.uk/csharp/csharp_s9p5.html

http://www.c-sharpcorner.com/UploadFile/devinderarora/ListBoxDA00111182005034107AM/ListBoxDA001.aspx

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: douglasmanee             
Posted Date: December 19, 2013     Points: 20   

see the following http://csharp.net-informations.com/gui/cs-listbox.htm c# list operations

douglas



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend