Questions tagged as 'c#'

1
answer

C # Return Values of a Thread

I created a database connection class that I want to use Thread to make queries faster. In functions ExecutarSelect and ExecutarSQLPiece I have returns, but I could not get those returns through the thread. I did a sea...
asked by 24.02.2016 / 19:58
1
answer

How to create a list of blocked programs in C #?

I want you to select one of the programs from the list of installed programs in Windows. I want to prevent them from being opened, in this case, with a password. For example, select, click Block, and add a password to connect to the locked pr...
asked by 29.01.2016 / 22:28
1
answer

How to get specific text from a string with Regex?

I'm trying to manipulate the return of a string where I need to always get the where block from the select problem so my method always returns different strings. For example: SELECT..... FROM..... WHERE ( ( UPPER(I...
asked by 05.02.2016 / 11:52
2
answers

How to get the values of a textBox?

I created an example for you to see. The problem is as follows. I'm trying to get the value contained in the TextBox converting to a string type to be able to use in MessageBox , but it is displaying    System.Windows.F...
asked by 30.12.2016 / 20:48
2
answers

doubt to consume api

I have the following service: [HttpGet] [Route("save")] public async Task<dynamic> save(VendaModel[] venda, string CnpjEstab) { dynamic retorno = null; VendaModel ultima = new VendaModel(); //TODO...
asked by 01.12.2018 / 18:03
1
answer

WebMethod to create Sales Document with editing of parameters in document rows

Good morning, We are developing a webservice / method that creates sales documents. In the header I can pass the values all to the header parameters. But on the lines how can I do the same? For example, if you want to change the item descr...
asked by 10.12.2018 / 12:06
2
answers

NumericUpDown Block Down

How to block or control the "Down" state of the Windows Forms NumericUpDown component? Ex: First time the user makes a "registration", he can Add or Remove the Quantity, in the second possibility the user can "edit" add or remove the added am...
asked by 17.10.2018 / 17:24
1
answer

How to add a background with C # codes? [closed]

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wellsoft{ class Program { static void Main(string[] args) { Console.ForegroundColor...
asked by 15.10.2018 / 14:17
2
answers

Capture mouse event

Hello, friends! I'm developing a side menu that contains submenus in C #, but I can not find an effective method for displaying the submenus that are inside a panel. I tried with MouseMove event, however I did not get the expected result, becaus...
asked by 14.10.2018 / 18:35
1
answer

Print a value received in a method on a Form C # [closed]

Inside the oClick method, I have an integer variable that gets a value converted to integer from a textBox . I have a label that within this method prints this received value correctly, but it is not here that I need this value, I need it p...
asked by 25.10.2018 / 18:42