Questions tagged as 'winforms'

1
answer

How do I get a part of an image?

Based on this image as would be the code to separate into, as if it were sub image without dividing this image into different files: Ex: void splitImage(int numeroDeDivisoes, ref Image original, out Image[] final){ // aqui seria que ne...
asked by 20.04.2015 / 14:26
1
answer

What is the difference in size and coordinate measurement in Forms from C #

In my project I work with the distance of elements and their size. But on a 600-by-600 screen, when you insert a 100-percent object, it appears to be much smaller than 1/6 of the screen, and when checking the distance from the object's center po...
asked by 05.09.2014 / 15:08
1
answer

Loop asynchronous calls and process data at the end of all executions

I have a method of a web service that receives the IP of a server as a parameter and returns a DataSet . Multiple servers must be queried by this web service, A List<string> contains the list of IPs. A loop executes the meth...
asked by 26.02.2014 / 15:57
1
answer

How to add "buttons" to Tabbedpanel

I'm involved in a personal project where I want to work out a calculator with some items that are inserted in arrays. I chose a class called "calc.cs" to construct a method with a code similar to this public void AddDrinkstoTabbedpanel()...
asked by 24.02.2014 / 12:24
1
answer

Lock keyboard and mouse in C #, but keeping the execution of a method

I need to block the use of the keyboard and mouse in form while it will execute a certain function of the system, in which I am putting the call of the lock method in the event of Load of the form, in which it is actually blocking the key...
asked by 18.01.2016 / 22:01
1
answer

SQL database online only for LOCAL NETWORK, connect via C #

I developed a system for my company and need a database hosted on our internal network, explaining better I want to host this database on a PC running a Windows Server 2012 here in the company, our connection is all wired .. . It's a network...
asked by 09.12.2014 / 18:38
2
answers

Enable / Disable Button according to Checkbox value in a DataGridView

A form in an application Windows Forms with C# displays a DataGridView with Checkbox . When one of the Checkbox is checked I want to enable a certain button. If no Checkbox is checked, I want to disable i...
asked by 04.01.2015 / 22:07
1
answer

How to group by 2 properties and add the values

I have no idea how to do this query in LINQ. How can I from sales list. Separate sales per hour, and then group the products and add up the quantities sold? public class Venda { public int Id {get;set;} public DateTime DataHora {get;se...
asked by 12.06.2014 / 17:45
1
answer

How to use Curl with C #, application windows forms

I'm trying to integrate my desktop application with an online tool (ScrumWise), however they use Curl, I'm not able to consume the rest. curl https://api.scrumwise.com/service/api/v1/getData -k -u [email protected]:69C0A6A9E957B6398BD8C62F3B67...
asked by 19.05.2017 / 17:09
1
answer

Add row to DataGrid with DataSource defined

I have DataGridView that has DataSource setado with List<MinhaClasse> and would like to add a new line to it. I know this is not possible using the AddRow() method of DataGrid . Is there any way I...
asked by 16.10.2015 / 21:53