im using a label instead of a groupbox.i want to use groupbox.so that after entering decSpentAmount"amount of user"
then the groupbox to display after that procidure in my userinterface.
thanks in advance
also thanks for correcting me,on how to post my questions
------------------code:
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'Declaration
Dim decPriceOfSlice As Decimal
Dim decSpentAmount As Decimal
Dim decInterest As Decimal
Dim decCalcPrice As Decimal
'Calculation
decSpentAmount = Convert.ToDecimal(txtSpentAmount.Text)
decInterest = 0.3D
decCalcPrice = decSpentAmount * decInterest
decPriceOfSlice = decSpentAmount + decCalcPrice
'Display
lblDisplay.Text = "The price of a slice of cake is :R" & decPriceOfSlice.ToString("N0")
End Sub
then the groupbox to display after that procidure in my userinterface.
thanks in advance
also thanks for correcting me,on how to post my questions
------------------code:
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'Declaration
Dim decPriceOfSlice As Decimal
Dim decSpentAmount As Decimal
Dim decInterest As Decimal
Dim decCalcPrice As Decimal
'Calculation
decSpentAmount = Convert.ToDecimal(txtSpentAmount.Text)
decInterest = 0.3D
decCalcPrice = decSpentAmount * decInterest
decPriceOfSlice = decSpentAmount + decCalcPrice
'Display
lblDisplay.Text = "The price of a slice of cake is :R" & decPriceOfSlice.ToString("N0")
End Sub