Posts by João Paulo Pulga • 431 points
11 posts
-
0
votes0
answers29
viewsQ: Problem with clicking a Textbox inside a Child Form
Good Afternoon! I have the following code in my application: using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApp1 { static class Program { [STAThread] static…
-
0
votes3
answers38
viewsA: How do I replace windows form Dialogresul in wpf?
How do you compare the Openfiledialog result? The code below works perfectly for me.. using System; using System.Windows.Forms; namespace TesteWpf { class Program { [STAThread] static void…
-
3
votes3
answers1171
viewsA: Break a txt file into multiple items in a string list
Could do so: using System.Collections.Generic; using System.IO; using System.Linq; List<string> texto = File.ReadAllLines(path).ToList();
c#answered João Paulo Pulga 431 -
1
votes0
answers31
viewsQ: How to add a file to a Changelist
I want to add files to the "ignore-on-commit" changelist. I have this code, which runs, not the error. (But it also doesn’t work :v) using(SvnClient client = new SvnClient()) { string sSoluctionDir…
c#asked João Paulo Pulga 431 -
7
votes3
answers2029
viewsA: Save to Notepad C#
Try it like this: using System.IO; // Biblioteca Input/Output, importante para salvar e ler arquivos! SaveFileDialog salvar = new SaveFileDialog(); // Cria instancia tipo SaveFileDialog…
c#answered João Paulo Pulga 431 -
3
votes1
answer71
viewsQ: Replace words dynamically
For example, I have file addresses: C:/windows/x.exe C:/windwos/system32/example.exe I would like to replace the file name and extension with "", so: C:/Windows/ C:/windows/system32/…
c#asked João Paulo Pulga 431 -
2
votes1
answer1252
viewsA: What is Handled for C#
Definition of Handled according to the microsoft website: Get or set a value that indicates whether the event has been treated. Example of the use of handled control. (It will determine whether the…
c#answered João Paulo Pulga 431 -
2
votes3
answers89
viewsQ: How to make several projects have the same post-compilation event?
I have a solution in Visual Studio with 277 projects. And I would like everyone to have the same post-compilation event. Basically, they would run an executable that is in the application folder.…
-
5
votes1
answer557
viewsQ: How to get command line parameters / file path
I am developing an application, and accurate by parameters/commands next to the file path. For example, these flags: C:/caminho_do_arquivo -r C:/caminho_do_arquivo -v And in the code there would be…
-
0
votes1
answer633
viewsQ: How to search for files recursively inside a folder?
I am developing an application, and I need to return the paths of files that have same name and same extension from within a specific folder, to assign a version there are them, but I do not know…
-
4
votes1
answer114
viewsQ: How to know if the solution has been modified?
I would like to make a code, which when it is executed, I would know if the solution has been changed and which project has been changed, but I do not know if there is a method to be used. Then I’d…