Hi,
I have a RichTextBox in my form and I would like the text to be automatically formatted, so that for example the first line is bigger and in a different font. I would also like to add an image if possible.
At the moment this is what I have:
How do I get it to look less crap?
My current code:
Code:Private Sub ToolStripButtonPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButtonReceipt.Click Dim headLine As String = "Pete's Awesome Plumbing Company" RichTextBox1.Text = "" RichTextBox1.AppendText(vbTab & headLine & vbNewLine) RichTextBox1.AppendText(vbTab & "Labour: " & Labour_CostTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Travel: " & Travel_CostTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Plastic Pipes: " & Plastic_Pipes_CostTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Copper Pipes: " & Copper_Pipes_CostTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Chrome: " & Chrome_Pipes_CostTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Subtotal: " & SubtotalTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "VAT: " & VATTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Discount: " & DiscountTextBox.Text & vbNewLine) RichTextBox1.AppendText(vbTab & "Total: " & TotalTextBox.Text & vbNewLine) End Sub




Reply With Quote
