ListBox with Grayed Out / Non-Selectable Items Wisconsin

This code sample shows how to create a listbox in VB5/6 which is subclassed to have non-selectable/grayed out items.

Local Companies

codeeo
608 305 1060
1360 Regent Street #155
Madison, WI
Electroniclaim
262-240-9700
11357 N. Port Washington Rd
Mequon, WI
Gates Business Solutions
608-661-0810
2810 CrossRoads DR
Madison, WI
Image Processing Software Inc
608-233-5033
6409 Appalachian Way
Madison, WI
Access Technologies International
414-289-3121
840 N Old World 3rd St
Milwaukee, WI
Yahara Software
(608) 821-1723
8000 Excelsior Drive
Madison, WI
Practice Management Solutions Inc
414-352-8160
7571 N Teutonia Ave
Milwaukee, WI
KMSpecialties
414-751-4009
7434-3 Halverson Rd
Three Lakes, WI
Madison Software Inc
608-833-5410
6666 Odana Rd
Madison, WI
Gbl Software LLC
414-760-9029
6417 W Hustis St
Milwaukee, WI

provided by: 
Originally published at Internet.com


Author: Ravi Kiran

If you ever wanted a listbox With a few non-seletable items?
Here Is some code that does this.

Screen Shot

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

Featured Local Company

Yahara Software

6088211723
8000 Excelsior Drive
Madison, WI

Related Articles
- Object-Oriented Application Development Using the Caché Postrelational Database Wisconsin
Not all books are created equal. If you are interested in object-oriented development, object-databases, Caché, or database developement in general, then you'll want to check out this book review.
- Custom MSBuild Task Development with Visual C++ Wisconsin
Regional Articles
- ListBox with Grayed Out / Non-Selectable Items Appleton WI
- ListBox with Grayed Out / Non-Selectable Items Baraboo WI
- ListBox with Grayed Out / Non-Selectable Items Beaver Dam WI
- ListBox with Grayed Out / Non-Selectable Items Beloit WI
- ListBox with Grayed Out / Non-Selectable Items Brookfield WI
- ListBox with Grayed Out / Non-Selectable Items Burlington WI
- ListBox with Grayed Out / Non-Selectable Items Cedarburg WI
- ListBox with Grayed Out / Non-Selectable Items Chippewa Falls WI
- ListBox with Grayed Out / Non-Selectable Items Cudahy WI
- ListBox with Grayed Out / Non-Selectable Items De Pere WI
- ListBox with Grayed Out / Non-Selectable Items Delavan WI
- ListBox with Grayed Out / Non-Selectable Items Eau Claire WI
- ListBox with Grayed Out / Non-Selectable Items Elkhorn WI
- ListBox with Grayed Out / Non-Selectable Items Fond Du Lac WI
- ListBox with Grayed Out / Non-Selectable Items Fort Atkinson WI
- ListBox with Grayed Out / Non-Selectable Items Franklin WI
- ListBox with Grayed Out / Non-Selectable Items Green Bay WI
- ListBox with Grayed Out / Non-Selectable Items Hartland WI
- ListBox with Grayed Out / Non-Selectable Items Janesville WI
- ListBox with Grayed Out / Non-Selectable Items Kaukauna WI
- ListBox with Grayed Out / Non-Selectable Items Kenosha WI
- ListBox with Grayed Out / Non-Selectable Items La Crosse WI
- ListBox with Grayed Out / Non-Selectable Items Lake Geneva WI
- ListBox with Grayed Out / Non-Selectable Items Madison WI
- ListBox with Grayed Out / Non-Selectable Items Manitowoc WI
- ListBox with Grayed Out / Non-Selectable Items Marinette WI
- ListBox with Grayed Out / Non-Selectable Items Marshfield WI
- ListBox with Grayed Out / Non-Selectable Items Menasha WI
- ListBox with Grayed Out / Non-Selectable Items Menomonee Falls WI
- ListBox with Grayed Out / Non-Selectable Items Menomonie WI
- ListBox with Grayed Out / Non-Selectable Items Merrill WI
- ListBox with Grayed Out / Non-Selectable Items Middleton WI
- ListBox with Grayed Out / Non-Selectable Items Milwaukee WI
- ListBox with Grayed Out / Non-Selectable Items Mosinee WI
- ListBox with Grayed Out / Non-Selectable Items Mukwonago WI
- ListBox with Grayed Out / Non-Selectable Items Muskego WI
- ListBox with Grayed Out / Non-Selectable Items Neenah WI
- ListBox with Grayed Out / Non-Selectable Items New Berlin WI
- ListBox with Grayed Out / Non-Selectable Items Oak Creek WI
- ListBox with Grayed Out / Non-Selectable Items Oconomowoc WI
- ListBox with Grayed Out / Non-Selectable Items Onalaska WI
- ListBox with Grayed Out / Non-Selectable Items Oshkosh WI
- ListBox with Grayed Out / Non-Selectable Items Pewaukee WI
- ListBox with Grayed Out / Non-Selectable Items Racine WI
- ListBox with Grayed Out / Non-Selectable Items Rhinelander WI
- ListBox with Grayed Out / Non-Selectable Items Rice Lake WI
- ListBox with Grayed Out / Non-Selectable Items River Falls WI
- ListBox with Grayed Out / Non-Selectable Items Schofield WI
- ListBox with Grayed Out / Non-Selectable Items Shawano WI
- ListBox with Grayed Out / Non-Selectable Items Sheboygan WI
- ListBox with Grayed Out / Non-Selectable Items South Milwaukee WI
- ListBox with Grayed Out / Non-Selectable Items Stevens Point WI
- ListBox with Grayed Out / Non-Selectable Items Sturgeon Bay WI
- ListBox with Grayed Out / Non-Selectable Items Sun Prairie WI
- ListBox with Grayed Out / Non-Selectable Items Superior WI
- ListBox with Grayed Out / Non-Selectable Items Thiensville WI
- ListBox with Grayed Out / Non-Selectable Items Two Rivers WI
- ListBox with Grayed Out / Non-Selectable Items Watertown WI
- ListBox with Grayed Out / Non-Selectable Items Waukesha WI
- ListBox with Grayed Out / Non-Selectable Items Waupaca WI
- ListBox with Grayed Out / Non-Selectable Items Wausau WI
- ListBox with Grayed Out / Non-Selectable Items West Bend WI
- ListBox with Grayed Out / Non-Selectable Items Whitewater WI
- ListBox with Grayed Out / Non-Selectable Items Wisconsin Rapids WI
Related Articles
- Custom MSBuild Task Development with Visual C++ Wisconsin
Visual C++ 2010 sees the integration of MSBuild with Visual C++. MSBuild is Microsoft's common build engine and one of its key design goals is the ability to support a high-degree of flexibility in customizing the build process. See how a custom MSBuild task can be built in Visual C++, and how the task can be used to customize the build process of other Visual C++ 2010 projects.
- Object-Oriented Application Development Using the Caché Postrelational Database Wisconsin

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML