---
title: "ListBox in C#"  
description: "ListBox in C#"  
author: "Anoop Singh"  
published: 2010-10-09  
updated: 2010-10-09  
canonical: https://www.mindstick.com/forum/29/listbox-in-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# ListBox in C#

I have two [listbox](https://www.mindstick.com/articles/626/listbox-events-in-c-dot-net) on same from and i m [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to move [records](https://www.mindstick.com/forum/34640/how-to-create-a-stored-procedure-for-display-all-records) from one list box to another listbox.\
how to so that? any [sample](https://www.mindstick.com/news/2174/mars-mission-by-nasa-prepares-for-tests) of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)? ![ListBox in C#](https://www.mindstick.com/app_images/htmleditor.icons/eusa_think.gif)\

## Replies

### Reply by Anoop Singh

thanks ![ListBox in C#](https://www.mindstick.com/app_images/htmleditor.icons/msp_thumbup.gif)\

### Reply by Uttam Misra

on move record button click .. write below line of code..\
\

```
if(listBox1.Items.Count > 0)  {
   listBox2.Items.Add(listBox1.SelectedItem.ToString());   listBox1.Items.Remove(listBox1.SelectedItem);  }      
```

\
check articles also for more information...\
http://www.mindstick.com/Articles/5d02d2bc-82f8-4543-8780-f03a37b5f0aa/\
http://www.mindstick.com/Articles/364dcb8d-f6db-4435-924a-06252f66d1e0/\


---

Original Source: https://www.mindstick.com/forum/29/listbox-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
