Posts by Francisco Cardão • 14 points
2 posts
-
-1
votes1
answer80
viewsA: Textbox with preset value, but also editable in c#
The easiest is perhaps to use a property that always returns the sum value of the two fields. This is my proposal. It can be improved and to be more robust, you should use Tryparse instead of Parse.…
-
-1
votes1
answer40
viewsA: c# problems in calling screens that even the teacher could not solve
I’d try it this way: private void abrirJanela(object conteudo) { //programação defensiva if(!(conteudo is form)) { MessageBox.Show("Erro no objeto recebido"); throw new Exception(); //configurar a…