3 Replies - 207 Views - Last Post: 16 February 2013 - 01:38 PM Rate Topic: -----

#1 StudyNerd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 16-February 13

how to code in a groupbox to show only after text has been enterd

Posted 16 February 2013 - 01:23 PM

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

Is This A Good Question/Topic? 0
  • +

Replies To: how to code in a groupbox to show only after text has been enterd

#2 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3517
  • View blog
  • Posts: 12,008
  • Joined: 12-December 12

Re: how to code in a groupbox to show only after text has been enterd

Posted 16 February 2013 - 01:29 PM

Do you really mean a GroupBox? Or do you mean a TextBox or ComboBox, or... You need to decide this before you can make progress.

Also wrap your code in code-tags; it tells you how to do this directly in the area where you are typing your post. Preview your post so that you can check that it worked.

This post has been edited by andrewsw: 16 February 2013 - 01:30 PM

Was This Post Helpful? 0
  • +
  • -

#3 StudyNerd  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 16-February 13

Re: how to code in a groupbox to show only after text has been enterd

Posted 16 February 2013 - 01:32 PM

View Postandrewsw, on 16 February 2013 - 01:29 PM, said:

Do you really mean a GroupBox? Or do you mean a TextBox or ComboBox, or... You need to decide this before you can make progress.

Also wrap your code in code-tags; it tells you how to do this directly in the area where you are typing your post. Preview your post so that you can check that it worked.

i mean GroupBox
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3517
  • View blog
  • Posts: 12,008
  • Joined: 12-December 12

Re: how to code in a groupbox to show only after text has been enterd

Posted 16 February 2013 - 01:38 PM

Mmm a GroupBox is really a container for other controls.. However, it has a Text property:

GroupBox1.Text = "some text"

If you added a GroupBox control to a form and looked through its properties you would have discovered this, with little effort.

This post has been edited by andrewsw: 16 February 2013 - 01:39 PM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1