You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
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
- 0useful
- 0not useful
#12. Posted:
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.
- 0useful
- 0not useful
#13. Posted:
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
Last edited by murded1 ; edited 1 time in total
- 0useful
- 0not useful
#14. Posted:
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
- 0useful
- 0not useful
#15. Posted:
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 wrotemurded1 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
- 0useful
- 0not useful
#16. Posted:
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
- 0useful
- 0not useful
#17. Posted:
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
- 0useful
- 0not useful
#18. Posted:
Status: Offline
Joined: Apr 23, 201410Year Member
Posts: 645
Reputation Power: 25
Sound mate thanks for the help everyone.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.