What's new

.NET Link RTB & NUD with listview

Quast

Quast

Enthusiast
Messages
90
Reaction score
4
Points
85
Sin$
7
Hi
rtb.png


what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know what wrong:
Code:
for (int i = 0; i < richTextBox1.Lines.Length; i++)
{
   ListViewItem lvi = new ListViewItem(i.ToString());
   lvi.SubItems.Add(richTextBox1.Lines[i]);
   listView1.Items.Add(lvi);
}

///PS -- Its for two columns

the second thing is really strange, this time i dont want to use textbox, I post Numberupdown tool and i want to appear the time on it and on the cell time like this ""HH:MM:SS / 00:00:00""

So, any ideas guys ?

P.S. I know that i can do this with DataGridVeiw but i want to learn something new :wink:
 
Top Bottom
Login
Register