Questions tagged as 'c#'

0
answers

Winforms: Access a control from another thread

To access a control of a form from another thread, what technique is recommended, Delegate con el invoke or class BackgroundWorker ? Case 1 Delegate with the invoke : delegate void SetTextCallback(string text); private void S...
asked by 04.07.2018 / 18:26
0
answers

Create a REST FUL service in c # 2008?

Does anyone know of any place where they explain how to create a REST service with c # but with visual studio 2008 ?, In addition to how to run the service, the tutorials I review do not work, due to libraries that are not in the framework 3.5 ....
asked by 04.07.2018 / 21:44
1
answer

help with an event datagridview.cellcontenclic

Will someone know why the dtgridview event runs more than once? every time I load a grid, it is the number of times this event is executed There is some way to control it region Click event on the Image public void DGVMasterGridClickEve...
asked by 04.07.2018 / 22:18
0
answers

Report path Crystal Report

I am making an application ASP.NET in C# and I have a report in Crystal Report recorded in a directory where the application is: aplicación\bin\reportes\CR.rpt When I try to give the route to the report it throws...
asked by 04.07.2018 / 12:43
1
answer

How can I return something in the constructor to use it in my class?

I have an action filter to make a log in a class called LogActionFilter which has its respective methods to perform each specific task, and from my control I call this filter as follows [LogActionFilter] up there all right . The...
asked by 03.07.2018 / 16:15
1
answer

how to change color of an Html.ActionLink

<div class="row"> @foreach(var comicBook in Model) { <div class="col-md-3"> <h4>@Html.ActionLink(comicBook.DisplayText, "Detail", new { id = comicBook.Id })</h4> <a href="@Url.Action("Detail", new {...
asked by 03.07.2018 / 15:38
1
answer

Parse Json C # a object

What would be the best way to parse this Json?    link I tried like this, but it does not give me data var resultJson2 = Json.deserialize<List<ClimaHour>>(result.Result); public class ClimaHour { public List<int>...
asked by 03.07.2018 / 15:27
0
answers

Error in saved list in User Settings: Content is not saved

I have a List saved in my user configuration, I should save several strings, but when I check its value (by Settings.Default.FileList) it shows that the value is 0, when I save a string, it shows the number of saved strings, but when I change fo...
asked by 05.07.2018 / 06:31
0
answers

Doubt when working on the Android background in a Xamarin.Forms project

I am practicing and learning Xamarin and for this I have started to make an application of an agenda. To remind the user of the tasks that are scheduled, I use a method in a second thread that checks the dates of the tasks every 4 minutes and de...
asked by 05.07.2018 / 07:48
0
answers

How do I compare the values I have in a Spinner in Android C #?

What happens is that I have more than one Spinner in my project, three to be specific, and I want to compare it so that when they have the same values I get a normal message saying that I select different values sp = FindViewById<Spi...
asked by 06.07.2018 / 20:58