Page 1 of 1

How To Disable Some Rows In A Listbox

PostPosted: Wed Aug 28, 2013 1:45 pm
by acwoo1
Hi

I want to disable some rows in a listbox. How do I do it ?
Thanks

Regards
ACWoo
Using FWH1304+bcc582+Harbour

Re: How To Disable Some Rows In A Listbox

PostPosted: Thu Sep 05, 2013 6:41 am
by avista
Hi,
I need that solution too
Regards,

Re: How To Disable Some Rows In A Listbox

PostPosted: Thu Sep 05, 2013 10:28 pm
by James Bott
The Listbox is a Windows control. I don't believe I have ever seen disabled items in a listbox. And I don't see any property or method for disabled items in Microsoft's documentation for the listbox:

http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.aspx

The simple solution would be to not add the items you want disabled to the list. If needed, you could create two lists, one with all the items and one with the disabled items. Or if you need several different lists, then either make them all beforehand or build them as needed in the program.

James