my qcm project
-
in the first form i have a table of labels of categories(history, geography, etc...)and a label that counts the money that i have (we start by a certain number of money) so when i click on a label a question must appear in a new form, i answer the question and i claculate the new amout of money, i close the new form and return to the initial form where the label that counts the money must be uptadeted... the problem is when i come back to the initial form the label shows the initial amout that i have initially entered without being uptated.. even though i declared a public class
-
in the first form i have a table of labels of categories(history, geography, etc...)and a label that counts the money that i have (we start by a certain number of money) so when i click on a label a question must appear in a new form, i answer the question and i claculate the new amout of money, i close the new form and return to the initial form where the label that counts the money must be uptadeted... the problem is when i come back to the initial form the label shows the initial amout that i have initially entered without being uptated.. even though i declared a public class
-
in the event label_click (first form) { form2 f2=new form2(); f2.ShowDialog(); } that's all ....
-
in the first form i have a table of labels of categories(history, geography, etc...)and a label that counts the money that i have (we start by a certain number of money) so when i click on a label a question must appear in a new form, i answer the question and i claculate the new amout of money, i close the new form and return to the initial form where the label that counts the money must be uptadeted... the problem is when i come back to the initial form the label shows the initial amout that i have initially entered without being uptated.. even though i declared a public class
You need some method to actually trigger the update of the label. If you've used databinding against the label, you can update it using
INotifyPropertyChanged
. Alternatively, you have to manually trigger the update yourself."WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
in the event label_click (first form) { form2 f2=new form2(); f2.ShowDialog(); } that's all ....