Questions tagged as 'c#'

2
answers

Error trying to delete image file? [duplicate]

I'm trying to do an image update on a cadaster. When I do this update I want to change the existing image to the new update image. For this I am using File.Exists and File.Delete where I check if an image already exists and if...
asked by 22.03.2016 / 07:40
1
answer

The camera does not follow the character UNITY 5

Unity Error Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation(Vector3 Full Code using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed = 6f; Vector3 movement...
asked by 23.04.2016 / 20:37
1
answer

List or Datatable desktop c # [closed]

I have an application used layers and I have a question ... When the UI layer requests multiple records, it would be best to load everything inside a < > or use the datatable? Today I use the following form: public List<ClienteM...
asked by 24.04.2016 / 22:39
1
answer

Boleto.Net Component Generating Wrong Code

I'm working with the boleto.net library, I'm generating boletins from the brazilian bank and the following problem is occurring. I am generating the right ticket but the ticket bar code is coming with the end, where would be the wrong ticket...
asked by 04.05.2016 / 23:36
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
2
answers

Leave XML on a single line [closed]

My application in C # receives the indented xml. I need to leave this xml all in a single line. How can I do this?     
asked by 04.05.2016 / 20:53
1
answer

Trigger method 5 seconds after running the previous one

How to put a timer so that after sending the command EnvDados , the command NovoEnvio is sent, within the same method? IPAddress[] IPs = Dns.GetHostAddresses(host); Socket s = new Socket( AddressFamily.InterNetwork,...
asked by 13.05.2016 / 16:19
1
answer

Problems working with dates in the database using a maskedtextbox in the format dd / MM / yyyy

I'm using a MaskedTextBox in the en-BR culture to force the user to fill the date in the correct format (dd / mm / yyyy). Retrieve the string from the MaskedTextBox to insert into the database and record information containing the date of this i...
asked by 07.03.2016 / 21:20
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

Error creating project xamarin Visual Studio Community 2015

Error creating a new project in visual studio using xamarin     
asked by 11.05.2016 / 16:20