Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to show the text using a rich text box, you could do something like this:</p> <pre><code>richTextBox1.SelectionFont = new Font("Times New Roman", 10, FontStyle.Underline); richTextBox1.SelectedText = "Message:"; richTextBox1.SelectionFont = new Font("Times New Roman", 10, FontStyle.Regular); richTextBox1.SelectedText = " This is a message for Name of Client."; </code></pre> <p>Or, if the message is dynamic and the header and text are always separated by a colon, you could do something like this:</p> <pre><code>string message = "Message: This is a message for Name of Client"; string[] parts = message.Split(':'); richTextBox1.SelectionFont = new Font("Times New Roman", 10, FontStyle.Underline); richTextBox1.SelectedText = parts[0] + ":"; richTextBox1.SelectionFont = new Font("Times New Roman", 10, FontStyle.Regular); richTextBox1.SelectedText = parts[1]; </code></pre> <p>Or, if you want to show the text dynamically in labels, you could do something like this:</p> <pre><code>string message = "Message: This is a message for Name of Client"; string[] parts = message.Split(':'); Label heading = new Label(); heading.Text = parts[0] + ":"; heading.Font= new Font("Times New Roman", 10, FontStyle.Underline); heading.AutoSize = true; flowLayoutPanel1.Controls.Add(heading); Label message = new Label(); message.Text = parts[1]; message.Font = new Font("Times New Roman", 10, FontStyle.Regular); message.AutoSize = true; flowLayoutPanel1.Controls.Add(message); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload