Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
How can i add a tab in a text ( string)
Cassie Mod
7y
282
1
Reply
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."
+
"<br>"
+
"<br>"
+
"Gebruikersnaam: "
+ usernameTextbox.Text +
"<br>"
+
"Wachtwoord: "
+ passwordTextbox.Text;
SuccessTextLiteral.Text = succesText;
SuccessTextPanel.Visible =
true
;
}
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Image to text conversion
Create generic response for API