Can I suggest using the more politically correct "gender" rather than "sex"? Also, I'd suggest not using FormatCurrency either:
VB Code:
Private Const MESSAGE As String = "{0} will earn {1} before retiring and {2} final salary will be {3}."
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
If Me.RadioButton1.Checked Then
Me.SetLabelText("his")
End If
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
If Me.RadioButton2.Checked Then
Me.SetLabelText("her")
End If
End Sub
Private Sub SetLabelText(ByVal pronoun As String)
Me.Label1.Text = String.Format(MESSAGE, _
Name, _
Total.ToString("c"), _
pronoun, _
Salary.ToString("c"))
End Sub