Cassie Mod

Cassie Mod

  • NA
  • 488
  • 65.9k

How can i add a tab in a text ( string)

Feb 9 2017 8:39 AM
HI,
 
Ive got the following question.
I create a string of multiple lines. The last two lines contains the username and password.
But how can i use a tab so it would be printed just underneeth eachother ( see example)
 
the result should look like this:
 
Het invoeren en/of updaten van een additioneel toestel is geslaagd.

Gebruikersnaam:     Pietje32
Wachtwoord:            1234            
 
How can i do that ???
here is my code to create the string.
  1. private void SetScaCredentials(string username, string password)  
  2.        {  
  3.            usernameTextbox.Text = username;  
  4.            passwordTextbox.Text = password;  
  5.        
  6.            var succesText = "Het invoeren en/of updaten van een additioneel toestel is geslaagd." + "<br>" + "<br>" +  
  7.                                      "Gebruikersnaam: " + usernameTextbox.Text + "<br>" + "Wachtwoord: " + passwordTextbox.Text;  
  8.   
  9.            SuccessTextLiteral.Text = succesText;  
  10.            SuccessTextPanel.Visible = true;  
  11.        }  
 

Answers (5)