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?

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;
                }
            
        }

your question is still vague, can u please be more clear on what u want, what should happen.

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?

I don't know why you are doing it the way you are but.

I will provide you the code from my understanding.

Please understand the code and ask questions don't just copy paste.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.