Posts by Henrique • 141 points
9 posts
-
0
votes1
answer53
viewsA: Progress bar for procedure stored in c# windows form
You can use an asynchronous task to perform a long procedure. This can be done as follows: Add a "System.Threading.Tasks.Task" return in the method that performs the long procedure so that it can be…
-
1
votes1
answer215
viewsA: Add a node to another child node in an XML
There are several ways to create an XML file. Here is an example of how you can create and iterate the nodes in a similar way to your idea/way. public void CreateDoc() { XmlNode parent, child;…
-
0
votes2
answers460
viewsA: Method to automate the call of Forms in C#
Well, if I understand you right, you want to call forms and put them as children of Mdiparent Formcaller. I did something similar, but before, let’s put some stitches... The way you’re suggesting:…
-
1
votes1
answer124
viewsA: Async methods - return string from UDP
If I understand correctly, you want to create a method that makes the asynchronous call to the method testUdpSocketServer. This can be accomplished in two ways: Add a return of type…
-
2
votes2
answers74
viewsA: How to modify link in PHP code
Links are used with tag <a>. You could use it this way: <div> <a href="meu_link"></a> </div> Or with lists: <ul class="menu"> <li class="menu-item"> <a…
-
2
votes1
answer186
viewsA: Problem when displaying one form within another
You can use the property Control.Dock set as Dock.Fill to fill in all the empty spacing. Another way would be to create a Tablelayoutpanel and use Anchoring.…
-
5
votes1
answer290
viewsA: Progressidialog in C#
I think you will have to use asynchronous programming, this example below works without much work: public class myForm : Form { Task task; Thread bgThread; public myForm() { } // Inicia a task…
-
0
votes3
answers617
viewsA: Move image to another form by clicking the c# button (Visual Studio)
Check if the function button1_Click is really being called. Break points in your code to debug it, only then you will find the error. One help is to use the F11 shortcut to debug code line by line…
-
0
votes0
answers43
viewsQ: Losing Data from Designer.Cs File While Opening Form - C# Windows Form Application
I have a custom editor that adds buttons to a collection. This procedure is working well, the data is serialized in the Designer file but when I reopen the form or build the project, the data that…