provided by: 
Originally published at Internet.comAuthor: Ravi Kiran
If you ever wanted a listbox With a few non-seletable items?
Here Is some code that does this.
This Is still under development.. Only Ver 1.0 Is ready. More To come..
To test this: Take a test project. Add a module And a form. Copy the following code And run.
SAVE before RUNNING, please..
In this test, i am rejecting selection of every 3rd Item. This Is based On index. Another way would be To reject based On Listitem (String): The usual technique Is To have a String starting With "!*..." Or something Like that, And look For that identification In the selected Item. I will Put that also up In near future ( i.e when ever i Get Time:-) )
Any suggestions most welcome.
Ravi Kiran
Put this code In a module (mLBSbCls.Bas)
' Listbox Subclassing: Ported the C code found on MSDN at ' SDK Documentation/PlatformSDK/User Interace services/controls/listbox ' and Knowledgebase Article ID: Q74792 ' ' By T. Ravi Kiran. ' E-Mail: t_ravi_kira
Read article at Internet.com site