该值未分配给 lbl5
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cc As String
Dim an As String
Dim da As Double
Dim intam, tab As Double
an = Val(txtan.Text)
da = Val(txtxda.Text)
cc = Val(txtcc.Text)
If Val(txtan.Text) = "k" Then
lbl5.Text = "hhhhhhhhhhhhhhh"
intam = da * 0.05
ElseIf an = "wanitha" Then
intam = da * 0.06
ElseIf an = "upahara" Then
intam = da * 0.07
End If
tab = (da) + intam
End Sub