すべての出力ではなく、テキストボックスの特定の行だけを太字にしようとしています。また、すべての行ではなく、テキストボックスの右端まで数行を埋めて、見栄えを良くしようとしています。
すべての ( テキストボックス)を太字にし、txtBoxCourse
すべての ( テキストボックス) を右にインデントしようとしtxtBoxGrades
ています。
Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
Dim semester, Newline As String
Dim totalGPA As Double = QualityPoints / txtBoxTotalHours.Text
Newline = System.Environment.NewLine
semester = CStr(txtBoxResults.Text)
txtBoxTotalGPA.Text = CStr(totalGPA)
txtBoxTotalGPA.Text = Math.Round(totalGPA, 3)
If radButtonFall.Checked Then
semester = "Fall"
ElseIf radButtonSpring.Checked Then
semester = "Spring"
ElseIf radButtonSummer.Checked Then
semester = "Summer"
End If
txtBoxResults.Text = (semester & " " & "Semester : ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & "Total Hours : " & txtBoxTotalHours.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & "Total Qualit Points : " & txtBoxTotalQualityPoints.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & "Total " & semester & " " & "GPA : " & txtBoxTotalGPA.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & "Enrolled Courses : ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse1.Text & " " & txtBoxGrade1.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse2.Text & " " & txtBoxGrade2.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse3.Text & " " & txtBoxGrade3.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse4.Text & " " & txtBoxGrade4.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse5.Text & " " & txtBoxGrade5.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse6.Text & " " & txtBoxGrade6.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse7.Text & " " & txtBoxGrade7.Text)
txtBoxResults.Text = (txtBoxResults.Text & Newline & " ")
txtBoxResults.Text = (txtBoxResults.Text & Newline & txtBoxCourse8.Text & " " & txtBoxGrade8.Text)
End Sub