hi

I wnat to make only third line i.e "Wenisday" bold in richtextbox. how can i do this

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "Monday"
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "Tuesday"
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "Wenisday"
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "Thursday"
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "Friday"
End Sub

"{\b Wenisday}"

RTF is a formatting language, so you'd do well to look up the specification for what's possible and how to do it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.