Skip to content

Select 1st,2nd & 3rd values of a textbox into 3 labels

Marvin kakuru

Marvin kakuru

Asked Feb 6, 2016, 10:50 PM EST1 answer
Share
LinkedInX
hi there,
 
am trying to select three values from a textbox1 ="BANK BALANCE 110010" to three labels - lblbank, lblbalance & lblaccountnumber
 
i will be grateful for any help
thanks

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Marvin kakuru
    0
    hi again,
     
    i have got the solution its
     
    string input = textBox2.Text;
    string[] output = input.Split(' ');
    lblbank.Text = output[0];
    lblquery.Text = output[1];
    lblid.Text = output[2];
     
    but thanks for reading
    0