SamueDexterAYG
Member
- Joined
- Jul 7, 2022
- Messages
- 7
- Programming Experience
- 10+
Hello everyone. I will be grateful for your kind help on this one. I am trying to transfer a specific listview column items to a listbox in C#. Heres my effort below.
Unfortunately my code rather iterates though only the entry of the specified column and splits it as letters into the listbox. For a example if the entry there is "HELLO"
It rather transfer it to the list box as:
H
E
L
L
O
And not rather the next in the row of that column.
Unfortunately my code rather iterates though only the entry of the specified column and splits it as letters into the listbox. For a example if the entry there is "HELLO"
It rather transfer it to the list box as:
H
E
L
L
O
And not rather the next in the row of that column.
C#:
private void Button1_Click(object sender, EventArgs e)
{
foreach (var item in Listview.Items[5].Text)
{
this.lstTask.Items.Add(item);
}
}