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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listview- disabling items added

Status
Not open for further replies.

rickesilaw

Programmer
Jun 24, 2002
154
0
0
CA
I add a number of items to the listview container (which I am using as a menu). Now I want to disable some of the items based on password settings and if access is granted or not. So I might have 6 icons in menu but want to disable access on any number of them. Any ideas or better to not add items to listview in first place?

 
rickesilaw

You need to build your list after you determine what should be enabled or not. Then build an array of your list, adding "\" before the entry that need to be disabled, so in your array the element should look like:
"\disables item".

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top