Quantcast
Channel: RichTextBox Print Hakkında
Viewing all articles
Browse latest Browse all 2

RichTextBox Print Hakkında

$
0
0
Private Sub ToolStripComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ToolStripComboBox1.SelectedIndexChanged

If ToolStripComboBox1.ComboBox.Text = "Vuk. 376" Then
            RichTextBox1.Clear()
            RichTextBox1.SelectionAlignment = HorizontalAlignment.Center
            RichTextBox1.Select(RichTextBox1.TextLength, 0)
            RichTextBox1.AppendText("376" & vbLf)
        End If
        If ToolStripComboBox1.ComboBox.Text = "Adres Nakli ( Daire İçi )" Then
            RichTextBox1.Clear()
            RichTextBox1.SelectionAlignment = HorizontalAlignment.Left
            RichTextBox1.Select(RichTextBox1.TextLength, 0)
            RichTextBox1.AppendText("Nakil 1" & vbLf)
        End If
 End Sub

Bu kod ile RichTextBox1 e text ekliyorum. İstediğim Bu eklenen yazıların sağ, sol, üst, ve alt boşluklarını bozmadan aynen ekrana almak ve yazdırmak.

Teşekkürler


Viewing all articles
Browse latest Browse all 2

Latest Images