Questions tagged as 'c#'

2
answers

How to pass parameters to an event that you do not receive?

I am trying to pass the objeto sender to an event that does not receive parameters, I need the sender object in order to generate the information This is the event sent by the sender object: protected void DButton(object sender, Even...
asked by 06.07.2017 / 15:41
1
answer

Problem consuming WebService

I have a problem when consuming a Web service from a console application, I have added the Reference Service (WS) to the project, but when implementing it within the code when it will execute the method of That Web Service sends me the followi...
asked by 05.07.2017 / 23:53
1
answer

Kill a process / thread after a certain time if it is not over

We currently have a service that reads different TAGs from WINCC and inserts those values into a database. It is a process where thousands of tags are read. Normally the service works well, but sometimes, we do not know the reason, it gets ca...
asked by 24.05.2017 / 07:19
1
answer

Read and display a complete binary file on the screen c #

I'm doing an exercise for class, in which I have to show a binary file on the screen just after storing something in it, the problem is that I always get an error when I get to the end of the file, and what I'm missing , is the condition of the...
asked by 30.05.2017 / 14:38
1
answer

Error running ASP.NET Core Web API project

As you know MS released the visual studio version for OSX, my program runs in development, but when trying to run the project from the terminal without VS the following error appears:    /usr/local/share/dotnet/sdk/1.0.4/Microsoft.Common.Curr...
asked by 28.05.2017 / 18:23
1
answer

Open a modal from another page

How would I like to know how I can do to open modal from another page, since I want to send it to call from the navigation bar, to be able to show it from x page This is my modal : <div class="modal fade" id="myModal" role="...
asked by 29.05.2017 / 13:26
1
answer

Visual Studio. Notify when a property of an object is being modified

I would like to know if there is any configuration option or something to do debug on an object when it is being modified, I do not mean an object created by the user since that is easy to encapsulate the properties, I mean for example if the te...
asked by 22.05.2017 / 08:56
1
answer

read a text file and use the first row to create a two-dimensional array c #

I have this .txt I want to be able to use the first row of the file as size to create a two-dimensional array in this case 7 would be the number of columns and 210 rows and then save all the rows that follow the txt in that array , in this case...
asked by 21.05.2017 / 02:57
1
answer

Error Unable to connect to any of the specified MySQL hosts

Good morning everyone, I have this problem when I try to connect to a computer where I install XAMPP to host a database server MYSQL locally and also a database for a clock checker, through PHPMYADMIN if I can access the dat...
asked by 24.05.2017 / 15:32
1
answer

convert filename to string c #

Good morning, requesting your help to know how to get the name of a file by means of C # and save the name in a variable, that is to say in a certain route I have the file Example1.txt, I have to enter that route and get the name of the file wit...
asked by 22.06.2017 / 16:23