Windows Develop Bookmark and Share   
 index > Windows Forms General > Checkboxes in ListView
 

Checkboxes in ListView

I have set Checkboxes properties of the ListView on.
When I check on checkboxes, checked items are high-lighted. But the first record is also high-lighted.
How canI make it high-light only selected items, not including the first record?
Which properties have I set wrong?
Thanks for your assistance!

PHUONG_LE

Phuong Le  Saturday, October 28, 2006 2:03 PM
You need to give more details about your ListView properties. To prevent the 1st item from being selected when the form displays, try this:

private void Form1_Load(object sender, EventArgs e) {
listView1.SelectedIndices.Clear();
}

nobugz  Saturday, October 28, 2006 4:46 PM
You need to give more details about your ListView properties. To prevent the 1st item from being selected when the form displays, try this:

private void Form1_Load(object sender, EventArgs e) {
listView1.SelectedIndices.Clear();
}

nobugz  Saturday, October 28, 2006 4:46 PM

Dear nobugz,

Thanks for your suggestion
However, I am using Visual Basic 6.0, not C

I set ListView properties as follows:
Checkboxes = True
MultiSelect = True
Sort = True

Pls give me your recommend!
Thanks in advance!
PHUONG_LE

Phuong Le  Sunday, October 29, 2006 3:54 PM
Sorry, VB6 questions are off topic for any of the forums at this web-site. Try www.vbcity.com.

nobugz  Sunday, October 29, 2006 4:15 PM

Dear nobugz,

:((

I'll try!
Thanks,

Phuong Le  Sunday, October 29, 2006 4:28 PM

You can use google to search for other answers

Custom Search

More Threads

• C++ or C#?
• Toolstrip blue float rectangle
• Getting web page information from a windows application
• Change font to Italic, Bold and Undeline at the same tiem
• license
• Clipboard hangs for 5 seconds with Multithreading
• C# - Set Focus on TextBox - Which Event?
• From (controls) display performance problem
• Control.Invoke does not return
• WebBrowser w/o cookies