Click here to Skip to main content
12,633,990 members (20,466 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
in list box 1 selected item goes to list box 2 then immediately list box 1 selected item is enabled how can i do.

i have two list box in my project. i have two buttons as follows add and load.

when i click the load button all faculty code is retrieved from the DB and displayed in the list box 1 that is working fine.

when i select, the list box 1 selected item and click the add button that selected faculty code goes to list box 2 that is working .

what i required is list box 1 selected item goes to list box 2 when i click the add button then immediately the selected list box 1 item is to be enabled false.

how can i me.
Posted 22-Jan-13 3:46am
Sandeep Mewara 22-Jan-13 8:54am
And what have you tried so far? Where are you stuck?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you just want to deselect it:


If you also want to delete that:


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100