I have a question is there a way t write the following in a shorter way because i have to write this all about another 25 times. there is always one difference with one of all the textboxes.
' zonder roepnaam en zonder tussenvoegsel, wel vader maar vader geen tussenvoegsel, wel moeder maar moeder geen tussenvoegsel, en geen getuigen en geen loco , en geen opmerkingen
If TextBox32.Text = "" And TextBox3.Text = "" And TextBox11.Text = "" And TextBox12.Text = "" And TextBox13.Text = "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = Label3.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text
Dim texta1 As String = TextBox2.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'wel roepnaam, geen tussenvoegsel, geen vader geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text <> "" And TextBox3.Text = "" And TextBox11.Text = "" And TextBox12.Text = "" And TextBox13.Text = "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = Label3.Text + vbCrLf + Label31.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text
Dim texta1 As String = TextBox2.Text + vbCrLf + TextBox32.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'geen roepnaam, wel tussenvoegsel, geen vader geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text = "" And TextBox3.Text <> "" And TextBox11.Text = "" And TextBox12.Text = "" And TextBox13.Text = "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label4.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox3.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'geen roepnaam, geen tussenvoegsel, vader geen voornaam en geen tussenvoegsel wel achternaam, geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text = "" And TextBox3.Text = "" And TextBox11.Text = "" And TextBox12.Text = "" And TextBox13.Text <> "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + vbCrLf + Label14.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + vbCrLf + TextBox13.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'geen roepnaam, wel tussenvoegsel, vader geen voornaam en wel tussenvoegsel wel achternaam, geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text = "" And TextBox3.Text <> "" And TextBox11.Text = "" And TextBox12.Text <> "" And TextBox13.Text <> "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label4.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + vbCrLf + Label13.Text + vbCrLf + Label14.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox3.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + vbCrLf + TextBox12.Text + vbCrLf + TextBox13.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'geen roepnaam, wel tussenvoegsel, vader wel voornaam en wel tussenvoegsel wel achternaam, geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text = "" And TextBox3.Text <> "" And TextBox11.Text <> "" And TextBox12.Text <> "" And TextBox13.Text <> "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label4.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + vbCrLf + Label12.Text + vbCrLf + Label13.Text + vbCrLf + Label14.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox3.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + vbCrLf + TextBox11.Text + vbCrLf + TextBox12.Text + vbCrLf + TextBox13.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'wel roepnaam, wel tussenvoegsel, vader wel voornaam en wel tussenvoegsel wel achternaam, geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text <> "" And TextBox3.Text <> "" And TextBox11.Text <> "" And TextBox12.Text <> "" And TextBox13.Text <> "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label31.Text + vbCrLf + Label4.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + vbCrLf + Label12.Text + vbCrLf + Label13.Text + vbCrLf + Label14.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox32.Text + vbCrLf + TextBox3.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + vbCrLf + TextBox11.Text + vbCrLf + TextBox12.Text + vbCrLf + TextBox13.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If
'wel roepnaam, wel tussenvoegsel, vader geen voornaam en wel tussenvoegsel wel achternaam, geen moeder geen getuigen, geen opmerkingen.
If TextBox32.Text <> "" And TextBox3.Text <> "" And TextBox11.Text = "" And TextBox12.Text <> "" And TextBox13.Text <> "" And TextBox14.Text = "" And TextBox15.Text = "" And TextBox16.Text = "" And TextBox18.Text = "" And TextBox19.Text = "" And TextBox20.Text = "" And TextBox18.Text = "" Then
Dim texta As String = "" + Label3.Text + vbCrLf + Label31.Text + vbCrLf + Label4.Text + vbCrLf + Label5.Text + vbCrLf + Label11.Text + vbCrLf + Label6.Text + vbCrLf + Label7.Text + vbCrLf + Label8.Text + vbCrLf + Label9.Text + vbCrLf + Label10.Text + vbCrLf + Label13.Text + vbCrLf + Label14.Text + ""
Dim texta1 As String = "" + TextBox2.Text + vbCrLf + TextBox32.Text + vbCrLf + TextBox3.Text + vbCrLf + TextBox4.Text + vbCrLf + TextBox5.Text + vbCrLf + TextBox6.Text + vbCrLf + TextBox7.Text + vbCrLf + TextBox8.Text + vbCrLf + TextBox9.Text + vbCrLf + TextBox10.Text + vbCrLf + TextBox12.Text + vbCrLf + TextBox13.Text + ""
e.Graphics.DrawString(texta, font, Brushes.Black, 100, CInt(newHeight) + 70)
e.Graphics.DrawString(texta1, font, Brushes.Black, 250, CInt(newHeight) + 70)
End If