Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two list box in my screen.

Listbox 1 Button Listbox 2


RK Load RK
ck ADD CK


when i click the load button all facutly code are retrieved from the database.

then i select the facutly code and click the ADD Button that selected faculty from
Listbox 1 goes to Listbox 2.

it is working fine.


but i want when i select the faculty code from Listbox 1 and click the add button goes to listbox2. that select the faculty code from Listbox 1 will be clear and go to listbox2.

example as follows;

listbox1 listbox2
RK ADD Rk

when i click add button that listbox1 goes to listbox2 and clear that seleted faculty in listbox
Posted
Comments
Sergey Alexandrovich Kryukov 22-Jan-13 0:16am    
What did you try? What's the problem? Honestly, I don't know what to answer about. Well, remove it from one, add to another list box, why not? See the help page...
—SA

C#
ListBox2.Items.Add(item)
ListBox1.Items.Remove(item)
 
Share this answer
 
v2
 
Share this 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