Posts by Nicolas Dias • 146 points
4 posts
-
1
votes3
answers1270
viewsA: How to remove the first item from an array without for or foreach
If you will always add elements at the end and remove from the beginning, you can use the class Queue, which deals with queue (first in first out), that is, whenever it is going to be removed it…
-
0
votes3
answers107
viewsA: Doubt about class inheritance in Java
You have to set the attributes as protected and not private as you are doing, because if the herança does not act on the atributo. And to set you must do: Ebook ebook = new Ebook();…
-
1
votes1
answer561
viewsA: Information from a User Control to the Parent Window
To do this elegantly, I have set an example for you. I will describe it in parts: First in your project you should have a model for Empresa, below is the basic model I created to exemplify: public…
-
1
votes2
answers55
viewsA: Disable Toolstripbutton in Form
The most summarized and reusable way you could do this is as follows: var condicao = //minha condicao meuStripButton.Enabled = condicao; meuStripButton.Available = condicao; if(condicao) { //aqui…