M
MikeY
Hopefully someone can help me on this.
I am using C#, making Windows forms.
I have created a listView with checkbox's. I have enabled the checkboxes
under the properties, and all the data, checkbox's and icons are displayed
as they are meant to be. My problem is this, I am trying to achieve the same
results as I get with CheckListBox(s), where I am able to select
(Check-mark) various checkboxs items and able to alter the data. I do prefer
to use ListView because of adding icons, view properties, sizing, etc.
A sample of my code is below where I am trying to grab my selected (checked)
items then convert the name with my inputted text name:
foreach(string myItem in this.lvMassFileConversion.CheckedItems)
{
string myItem2 = this.txtBoxNameConvsersion.Test + " - " + myItem;
//Over-write old file with new file
File.Move(Path.Combine(currentFolderPath.myItem).Path.Combine(currentFolderP
ath.myItme2)
}
Now I can achieve the required results with checklistbox, but because of the
above mentioned I'd like to stay with listview.
Thank you all in advance.
MikeY
I am using C#, making Windows forms.
I have created a listView with checkbox's. I have enabled the checkboxes
under the properties, and all the data, checkbox's and icons are displayed
as they are meant to be. My problem is this, I am trying to achieve the same
results as I get with CheckListBox(s), where I am able to select
(Check-mark) various checkboxs items and able to alter the data. I do prefer
to use ListView because of adding icons, view properties, sizing, etc.
A sample of my code is below where I am trying to grab my selected (checked)
items then convert the name with my inputted text name:
foreach(string myItem in this.lvMassFileConversion.CheckedItems)
{
string myItem2 = this.txtBoxNameConvsersion.Test + " - " + myItem;
//Over-write old file with new file
File.Move(Path.Combine(currentFolderPath.myItem).Path.Combine(currentFolderP
ath.myItme2)
}
Now I can achieve the required results with checklistbox, but because of the
above mentioned I'd like to stay with listview.
Thank you all in advance.
MikeY