S
sympatico
I'm having trouble getting my program to do calculations on the input from
dynamic textboxes. I got everything to work with putting the textboxes on
the form, but I don't know how to store the input so I can do calculations
on it. I have an array for quantity, price, and extended price. I need to
multiply the input value in quantity by the input value in price and display
the totals in the extended price column. Can someone help me with this?
I've tried to get the input values from the textboxes in the same way that
it is done with regular textboxes, but it doesn't work with the dynamic
textboxes. I keep getting the error message that it's not set to an
instance of an object when I try to get the text property of the textbox.
here's how I did the textboxes if it makes it any difference:
txtQuantity(mintCurrent) = New TextBox
pntCurrent = New Point(cintCol1, mintYValue)
With txtQuantity(mintCurrent)
..Visible = True
..Width = 70
..Height = 20
..Location = pntCurrent
End With
Me.pnlItems.Controls.Add(txtQuantity(mintCurrent))
Thank you
dynamic textboxes. I got everything to work with putting the textboxes on
the form, but I don't know how to store the input so I can do calculations
on it. I have an array for quantity, price, and extended price. I need to
multiply the input value in quantity by the input value in price and display
the totals in the extended price column. Can someone help me with this?
I've tried to get the input values from the textboxes in the same way that
it is done with regular textboxes, but it doesn't work with the dynamic
textboxes. I keep getting the error message that it's not set to an
instance of an object when I try to get the text property of the textbox.
here's how I did the textboxes if it makes it any difference:
txtQuantity(mintCurrent) = New TextBox
pntCurrent = New Point(cintCol1, mintYValue)
With txtQuantity(mintCurrent)
..Visible = True
..Width = 70
..Height = 20
..Location = pntCurrent
End With
Me.pnlItems.Controls.Add(txtQuantity(mintCurrent))
Thank you