checkbox,richtextbox, How to set location of text in rich textbox and print it

  • Thread starter Thread starter muhammadanzar
  • Start date Start date
M

muhammadanzar

Guest
hi

i want each textbox text come in the next line. not to replace and not too far.

when press print, it save data in sql server and than print from printer.

i am thank full to all of you.

1570013.png

my code

Public Class Form4

Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Dim str As String
str = "hkhj\n\hgjhjhjjhhjjkghhg\n"
RichTextBox1.Text = str
End Sub

Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged
' RichTextBox1.Location(20, 20)
RichTextBox1.Text = "\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
End Sub
End Class


thanks


MUHAMMAD ANZAR E-mail : muhammadanzar@hotmail.com Mobile # :0092-3215096959

Continue reading...
 
Back
Top