~ Dim hektar As Double
hektar = 10000 If ad.SelectedIndex = 0 And Tm2.TextLength > 0 Then
tha1.Text = 0
'tha1.Visible = False
'Tha.Visible = True
Tha.Text = CStr(CDbl(Tm2.Text) / hektar)
ElseIf ad.SelectedIndex = 1 And Tm2.TextLength > 0 Then
Tha.Text = 0
'Tha.Visible = False
'tha1.Visible = True
tha1.Text = CStr(CDbl(Tm2.Text) / hektar)
Exit Sub
End If
Catch ex As Exception
End Try
Th_ha.Text = ""
Thazine_col.Text = ""
Tpardakhti.Text = ""
Tmande.Text = "" If Tm2.Text = "" Then
Tha.Text = ""
tha1.Text = ""
ad.SelectedIndex = 0
'Exit Sub
End If