Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable a List Box item

Status
Not open for further replies.

assiri

Technical User
Aug 17, 2008
17
0
0
GB
Is there ant method to disable or highlight a selected item in a List Box?

ThankX
 





Hi,

What's the ultimate objective here? To modify the list fill range, once a selection has been made, so that an item cannot be selected more than once?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Ill describe the situation and objective briefly,
-There are two forms named form1 and form2
-Form1 has a listBox and a command button named"Next>>"
-Select an Item from the ListBox and Press the "Next>>"Button then form2 opens
-Enter some data into the form2 and press the"Finish"Button in form2
-When press the "Finish" button in form2, again form1 opens to select items fron the list BOX
-Previously selected itms in the list Box cannot be selected in stage
Hence it needs to disable previously selected items or atleast highlight them
Please let me know any information to achieve this.

ThankX
assiri
 




Why do you even want to see these items in the list if you cannot select them? Just have them removed from the list once selected.

Otherwise, build an array of previously selected items and beat that against the current selection.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top