This question is locked. New answers and comments are not allowed.
I have 3 textboxes 1.Quantity 2. Price 3. Total when i enter text in price i want it Total.Text = Price.Text * Quantity.Text of course all are converted to int.
i wan the text of Total to changed as Price is being Entered. Currently i am using Price_TextChanged but its not working as i want it to here is the Code
try
{
if (!String.IsNullOrEmpty(price.Text))
{
MyPriceTotal = QuantityInt * MyPrice;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
this only works when Price loses focus.
i have bound all the CheckBoxes with properties and i am implementing INotifyPropertyChanged.
So what is the problem?
i wan the text of Total to changed as Price is being Entered. Currently i am using Price_TextChanged but its not working as i want it to here is the Code
try
{
if (!String.IsNullOrEmpty(price.Text))
{
MyPriceTotal = QuantityInt * MyPrice;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
this only works when Price loses focus.
i have bound all the CheckBoxes with properties and i am implementing INotifyPropertyChanged.
So what is the problem?