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.
- private void SetScaCredentials(string username, string password)
- {
- usernameTextbox.Text = username;
- passwordTextbox.Text = password;
- var succesText = "Het invoeren en/of updaten van een additioneel toestel is geslaagd." + "
" + "
" + - "Gebruikersnaam: " + usernameTextbox.Text + "
" + "Wachtwoord: " + passwordTextbox.Text; - SuccessTextLiteral.Text = succesText;
- SuccessTextPanel.Visible = true;
- }

Nilesh ShahRank #42 · 34.2K reputationPosted Feb 9, 2017, 7:44 AM EST
ali tuncerRank #1,499 · 1.1K reputationPosted Feb 9, 2017, 3:28 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 9, 2017, 5:17 PM EST
Ayappan AlagesanRank #4,305 · 352 reputationPosted Feb 11, 2017, 8:56 PM EST
adding a tab in a text (string) is possible through using escape sequence, backslash with t (Eg: "\t Hello world")
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Feb 12, 2017, 7:54 AM EST