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;
- }
Bikesh SrivastavaPosted Feb 12, 2017, 12:54 PM
Ayappan AlagesanPosted Feb 12, 2017, 1:56 AM
adding a tab in a text (string) is possible through using escape sequence, backslash with t (Eg: "\t Hello world")
Nitin SontakkePosted Feb 9, 2017, 10:17 PM
ali tuncerPosted Feb 9, 2017, 8:28 PM
Nilesh ShahPosted Feb 9, 2017, 12:44 PM