title: Load data from Database to richtextBox
body: <pre><code>  using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString))
              {
                  myDatabaseConnection.Open();
                  using (SqlCommand mySqlCommand = new SqlCommand("Select [EmpID], [Name], [Address], [Birthday] from EmpTable where EmpID = @EmpID", myDatabaseConnection))
                  SqlCommand.Parameters.AddWithValue("@EmpID", textBox1.Text);
                  {
                  using (SqlDataReader sqlreader = mySqlCommand.ExecuteReader())
                  {
  
                      if (sqlreader.Read())
                      {
                          textBox2.Text = sqlreader.GetInt32(sqlreader.GetOrdinal("EmpID")).ToString();                         
                          textBox3.Text = sqlreader.GetString(sqlreader.GetOrdinal("Name"));
                          textBox4.Text = sqlreader.GetString(sqlreader.GetOrdinal("Address"));
                          textBox5.Text = sqlreader.GetString(sqlreader.GetOrdinal("Birthday"));
                      }
                  }
                  }
              }
  </code></pre>
  
  <p>I have this to display a data from database to textBox.</p>
  
  <p><img src="https://i.stack.imgur.com/UvdwQ.png" alt="enter image description here"></p>
  
  <p>How I can load the data from database into a richBox? something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/GXrFK.png" alt="enter image description here"></p>
  
  <p>Where I can Highlight the data and copy the text.</p>