| |

VerySource

 Forgot password?
 Register
Search
View: 671|Reply: 3

How to make items in checkedlistbox unselectable?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-14 21:00:01
| Show all posts |Read mode
Requirement: How to disable one or more specific items in the checkedlistbox, and the item is not
      There is a selected state.
Status: Some items can be disabled, but the status is checked
Method: Draw a panel, generate multiple lists in it, each has only one item, and the name is different. This can make similar functions. But doing so is more troublesome.
      Is there any other way to achieve this?
Reply

Use magic Report

0

Threads

10

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-26 20:00:01
| Show all posts
Bangzhao lived, looking for a long time, it seems no!
Fainted and wait for the master to do it!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-5-1 12:15:01
| Show all posts
I have implemented it myself, just rewrite its ondrawItem and onItemclick events
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-2 14:30:02
| Show all posts
Learn!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list