by mgfranz (1 Submission)
Category: Data Structures
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (21 Votes)
If you need to use a CheckBox in a Grid, you have 2 choices, either use the ListView control which is limited in it's ability to set different styles in it's cells, or you can use this little set of fuctions.
First build your Form, add a MSFlexGrid control, be sure to add the Microsoft FlexGrid Control from Project > Components. Add 2 PictureBox objects, these will contain the checked and unchecked images.