Questions tagged as 'c#'

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

Clearing character masks [closed]

I created my mascara, but when I go to cancel it gets its characters in it. for example: your I put 0000000000, not time to save gets that number in the mask. Take a look at the image My clean code is this: mtbCPF.Mask = ""; My event:...
asked by 03.05.2016 / 21:11
1
answer

Value of the first cell of the selected row datagridview

Friends, good night. I'm having trouble handling the data in a datagridview, I need to assign the value of the cell to the first column of the row the user selected when the user clicks the row. Then I created an Event of type SelectionChange...
asked by 27.06.2016 / 06:09
1
answer

Verify that the file was copied

I have the following situation. A file is placed in a certain directory, when it is copied, I need to move it to another folder. How do I check if this file has already been pasted to be moved afterwards. I already have the move method...
asked by 15.04.2016 / 18: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

What to use to connect to the Internal Only Access Api Web

I am a beginner and I built a Mobile application in C # that connects to an Api Web. However, Web Api will be on a server that has only internal access, which theoretically would protect the DB. How can I make my (public) application have access...
asked by 21.07.2016 / 17:32
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

Add CheckBox dynamically

I have a project where when I click on a button, I want to pick up the text of 3% with different% and add them to a TextBox . So far so good, the problem comes up when I want to add these% automatic%, for the user to add more rows. He...
asked by 14.04.2016 / 14:40
3
answers

Diagonal movement unity 5

I'm a beginner in unity 5, I'm trying to create a 2d game, where I want to put diagonal moves after collisions, currently getting my object after collision is thrown up, but I can not make a diagonal move in any way, my matrix has (0,6) and (0,6...
asked by 03.04.2016 / 19:35
1
answer

C # with Storeprocedure

Good evening guys I'm doing a system for college and I'm trying to do with the procedure but it's not recording in the bank I think there's something wrong but I do not think so. I tried to use CM.Parameters.AddWithValue and CM.Parameters .Add m...
asked by 28.03.2016 / 04:31