Posts by ssebeck • 126 points
10 posts
-
1
votes2
answers9165
viewsA: Access device via CMD
You can access with ADB. If your intention is to backup files (photos, videos, game birds, etc.), you can use adb backup -f <file_name> [-[no]apk] <package_name>. If you want to install…
-
3
votes2
answers573
viewsA: Doubt how to send calling a method in another class
I don’t know if it would be the best solution, but you could create a method that takes the connection string as parameter and returns the string, passing it to Messagebox. Creating the method:…
-
1
votes2
answers170
viewsA: Computer architecture with bat
According to Microsoft information contained at this link, the correct way to get the system architecture is the batch below: @echo off Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0…
-
1
votes1
answer69
viewsA: How to block the application from minimizing C#
I can’t test now because I’m on my cell phone, but I think you can use the form Resize event: private void Form1_Resize(object sender, EventArgs e) { if (WindowState == FormWindowState.Minimized) {…
-
0
votes3
answers696
viewsA: Generate RES (stringtable) file from a resourcestring Unit
Old question, but I made a small software to facilitate the process of creating *.resfiles. If it is still useful to someone, the link to the project is this: Resmaker Below, prints of software…
-
4
votes1
answer252
viewsA: Close form without destroying C# visual Studio
You can change the behavior of the button close, making it just hide the form, if you use the code below in the Formclosing event of your form, it will only be hidden from the user, but will remain…
-
1
votes1
answer40
viewsA: C# All my combobox are changing text
It is possible that you have accidentally selected all Comboboxes when creating the event. In this case Visualstudio attaches the event code that should be on a single combobox to all those that…
-
0
votes1
answer126
viewsA: Losing data while communicating with C#
See if the code below works. In the method you get the data. Usually this is how I get data from Arduino. private List<byte> byte_buffer = new List<byte>(); private void…
-
0
votes1
answer75
viewsA: Activation of the Save c#/wpf button
You can put in the Textchanged event of the textboxes the code below, if there is no text in the textbox, the button will be disabled. private void textBox1_TextChanged(object sender, EventArgs e) {…
-
0
votes2
answers378
viewsA: How to execute multiple commands (cmd) c#?
You can try to join the commands using '&': string cmdText = "/C primeiroCommando&segundoCommando"; Process.Start("CMD.exe", cmdText); If it doesn’t work, I suggest creating a temporary…