Questions tagged as 'c#'

1
answer

Move an object with onMouseDrag in Unity?

This code in theory works to move an object as I have seen in tutorials, but I do not move the sphere and I do not know why. I've assigned the script and everything but nothing ... what's wrong? public class mouseDrag : MonoBehaviour { float...
asked by 14.03.2017 / 12:05
1
answer

Show SQL Data in TextBox

In this code it shows me 3 data with the same number of folio and the same department, with the help of a listBox , however I want it to also be shown in 3 textbox that I have (Obviously the data that will show are 3 different, such as...
asked by 14.03.2017 / 21:32
2
answers

C # SqlException was unhandled error: 26 - Error Locating Server / Instance Specified

I have been developing since the beginning of December 2016 a project to register tool loan vouchers for my school and I have used an sql database to keep the record. I added a local sql database following the following youtube tutorial: "Ins...
asked by 15.03.2017 / 19:58
2
answers

Open an Excel file from a server

I have the following problem: I have a button in which I open an excel file, with Process.Start("ruta"); I put the path of the server \server\etc\etc , and it works in my localhost, but when uploading the web app to the server (t...
asked by 04.03.2017 / 03:04
1
answer

Entity Framework how to access the data model without saving the credentials and settings in the app.config

Please cooperate with the following problem: Always work with EF EDMX, when creating the floor model, type the options "Yes, include confidential data in the connection string" and also the "Save connection settings in App.Config as:", but in...
asked by 03.03.2017 / 20:39
1
answer

You doubt about the passage of data from a list to an entire variable

Good to all I comment the idea here is that to an Id of a File can be assigned to several users eg IdExpediente: 51 can be assigned to IdMail: 17 y 58 and that is saved in table T_MAIL_EXP as I can do to be loaded i...
asked by 17.03.2017 / 13:04
1
answer

Do not cascade in Entity Framework

I have a question that I have not been able to resolve. If I have for example a class person and this is related to an address, in a separate table, one by one, then I create a person object, I set its address object and when saving with save...
asked by 15.03.2017 / 23:53
1
answer

Error exporting datagridview to excel C # [duplicated]

I have the following error:    Unhandled exception of type 'System.ArgumentOutOfRangeException'   in mscorlib.dll       Additional information: Index was out of range. Must be non-negative   and less than the size of the collection. In...
asked by 17.03.2017 / 22:18
1
answer

Unique length of segments of a line

I am trying to get the distance traveled in a collection of straight line trips. The rule to determine the distance is that only the only sections count, if it happens more than once only the first counts. Example: ╔═══════╦═══════╦═══════╗ ║...
asked by 22.04.2017 / 07:02
2
answers

Visual Studio 2010 does not run the project [duplicated]

What happens is that in my development team a project is being carried out, Tortoise is used to keep the repository updated. On my laptop, the project does not start, however, on my colleagues' computers, yes. The project is located following...
asked by 09.02.2017 / 19:17