Hi,

I think this a basic question but I'm not sure how to do it.

I have a textbox1 which contains data in the following format :

Mass      Fraction 	Intensity
    79.05423	0.9366496	 100.00
    80.05423	0.0616264	   6.58
    81.05423	0.0016983	   0.18
    82.05423	0.0000252	   0.00

Now I want the "Mass" column and the values under it into textbox2 and intensities and its values into textbox3.

Can anyone suggest me how to do it in C# windows form?

Edited 6 Years Ago by srikanth2321: formatting

Show me some effort.

Where is your code, what have you done so far.

Show me some pseudo code.

Show me some effort.

Where is your code, what have you done so far.

Show me some pseudo code.

Sorry, forgot to post it last time. Just was trying to retrieve the first column.

private void button2_Click(object sender, EventArgs e)
        {
            int x = 2;

              foreach (string lines in richTextBox1.Lines)
                {
                  
                    richTextBox3.AppendText( richTextBox1.Lines[x].Substring(0,7));
                    richTextBox3.AppendText("\n");
                    x = x+1;
                }
            
        }

Still unclear...
Where exactly do you have all those values now?
Because what shows ur 1st post it is not possible (or pointless) to have all those values in a textBox.

Please clarify it a bit more, from where to where and what exactly would you like to transfer?

This article has been dead for over six months. Start a new discussion instead.