Questions tagged as '.net'

1
answer

Consuming REST windows forms

I'm trying to consume a JSON REST, I'm developing a module for a legacy Windows Forms system, it's not working, it does not return anything. Follow the code: var client = new RestClient("https://selador.homologacao.portalseloam.com.br/auth"...
asked by 08.08.2016 / 16:16
1
answer

Insert date and currency data of a maskedTextBox in MySQL

When trying to insert the data entered from a maskedTextBox object, one of type data and another of type currency, in MySQL database, where I have a table named test, created according to the command below: CREATE TABLE 'teste' ( 't...
asked by 01.05.2016 / 23:16
1
answer

Save last value in variable and display [duplicate]

I have a problem with my program and its function is to display on the screen how much RAM the process is consuming at the moment and display the peak of ram usage, so my problem is when I close the process, the program to display the peak of...
asked by 17.04.2016 / 16:47
1
answer

How to list static properties (shared property) equal to System.Drawing.Color

I have a structure called Servicos and in it I have some static properties. Public Structure Servico Public Shared ReadOnly Property Instalacao As Servico Get Return New Servico(ServicesType.Instalac...
asked by 12.04.2016 / 21:41
1
answer

Get all console buffer

How can I get all of the Console text ( System.Console ) to a String , without redirecting console output to a process , for example, I want to get what is in Console through the Console itself. It is possible? If so, how do I do th...
asked by 08.05.2016 / 04:53
1
answer

Error while trying to upgrade Visual Studio 2015 / Framework to version 4.6.1

I downloaded Visual Studio 2015 and it was all right, but unfortunately I work with a shared machine and the other user ended up deleting the installations of .NETFramework 4.6.1, now I'm trying to install again, but it does not appear in Visual...
asked by 03.03.2016 / 14:42
1
answer

Pick up coordinates of the mouse position when clicking

I have to draw a line with a starting and ending point, I can do this line if I provide these coordinates through the keyboard, but I want to do this by clicking the mouse, the first would be the starting point and the second the end and the dat...
asked by 24.02.2016 / 03:36
1
answer

How to download a simple text file?

How do I get and get the String contained in an online file in Windows Phone 8.1 SDK?     
asked by 23.01.2016 / 08:09
2
answers

How a CheckBox can receive a DataGridView CheckBoxCell

In my DataGridView, the user's information is included in the database, whether the user is an administrator or not, this cell has a DataGridViewCheckBoxCell. Iwanttopassthevalue(True/False)toaCheckBoxControl.Itriedusingthefollowingcode,buti...
asked by 15.01.2016 / 15:20
2
answers

WebService in C # with 404 error

I'm doing maintenance on a C # project, which has WebServices. I created a new service and executed the program, it works as images below, but when calling the method it gives 404 error. Is this a normal behavior? Code using System; usin...
asked by 18.03.2016 / 17:20