You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Skittle
  • V5 Launch
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
ICR7I wrote In my combo box when I choose a different item it also works again it just won't automatically do it when you type a quantity in.

You need to handle the TextChanged event of the QuantityBox TextBox and update the CostOfAllItems in there. Something like this:


Private Sub QuantityBox_TextChanged(sender As Object, e As EventArgs) Handles QuantityBox.TextChanged
    CostOfAllItems.Text = QuantityBox.Text * CostOfItem.Text
End Sub
#12. Posted:
ICR7I
  • Prospect
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
You see thats what I was doing but it just wont work if I put it there it gives me an error.
#13. Posted:
murded1
  • Resident Elite
Status: Offline
Joined: Jan 06, 201014Year Member
Posts: 237
Reputation Power: 9
Status: Offline
Joined: Jan 06, 201014Year Member
Posts: 237
Reputation Power: 9
Edit : Never mind, not sure that would work


Last edited by murded1 ; edited 1 time in total
#14. Posted:
Skittle
  • V5 Launch
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
murded1 wrote You could add something like this

private void UpdatedPrice()
{
Put all your code from the selected index change here
}

and then put UpdatePrice(); inside the selected index change and text change.

if you have teamviewer or something I could show you

OP is using Visual Basic, he most likely wont understand C#.

@OP Add me on Skype: lmSkittle I will assist further
#15. Posted:
murded1
  • Resident Elite
Status: Offline
Joined: Jan 06, 201014Year Member
Posts: 237
Reputation Power: 9
Status: Offline
Joined: Jan 06, 201014Year Member
Posts: 237
Reputation Power: 9
-Skittle wrote
murded1 wrote You could add something like this

private void UpdatedPrice()
{
Put all your code from the selected index change here
}

and then put UpdatePrice(); inside the selected index change and text change.

if you have teamviewer or something I could show you

OP is using Visual Basic, he most likely wont understand C#.

@OP Add me on Skype: lmSkittle I will assist further


Yeah I completely overlooked that, edited my post
#16. Posted:
ICR7I
  • Prospect
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
So what I ended up doing to see what was going on was I deleted the quantity text box and put in a different one and guess what happens it worked what the ****? how can one text box be different than another :p
#17. Posted:
Skittle
  • Comment King
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
ICR7I wrote So what I ended up doing to see what was going on was I deleted the quantity text box and put in a different one and guess what happens it worked what the ****? how can one text box be different than another :p

My guess is that the Event Handler forthe TextBox wasn't set properly, who knows Good you got it working, if you need any more help feel free to PM me
#18. Posted:
ICR7I
  • Prospect
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
Sound mate thanks for the help everyone.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.