title: Visual Basic richtextbox - setting specific text to Italic font style
body: <p>I have created a Richtextbox, which produces text based on user-inputted variables as well as some basic formatting - eg:</p>
  
  <pre><code>name = txtname.text
  richtextbox1.text = "Hello my name is " &amp; name &amp; "."
  </code></pre>
  
  <p>What i want to do is set the text in the name variable in Italics when it is displayed, like this.</p>
  
  <p>Hello my name is <em>Bob</em>.</p>
  
  <p>Best I've been able to find is to do with selection ranges, but not had any luck with that.</p>
  
  <p>Cheers!</p>