Questions tagged as 'c#'

2
answers

Change the color of a Row in a GridView

Good morning, I am developing a program in Framework 3.5 in WPF (xaml) and the problem that arises is that when you want to change the color of a line from the class code, when the grid already has the data that I want to show, I can not find...
asked by 04.07.2017 / 14:39
1
answer

How to use the functions of one script in another with unity

I have the following problem: I have a script in unity (C #) which establishes a connection with the bd. It provides it of only, in a GameObject and without a problem it works to me by placing the method with the name Start , I can see with...
asked by 30.05.2017 / 23:45
2
answers

Implement C # style flags in C ++

I am adapting the maze generator algorithm written in C # to C ++. I have found a new theme for me: Flags I know how to implement enumerators in c ++, it's practically the same, but I do not understand how to implement the flags. In co...
asked by 04.03.2017 / 18:17
1
answer

How can I debug my Windows service?

I created a Windows service in .Net, but for some reason it does not work for me. Is there any way to know what is failing and to debug it?     
asked by 20.10.2017 / 10:56
1
answer

Xamarin Geolocator does not return anything to me

Hi, I'm using Xamarin and GeoLocator to make an application with Geolocation, but it does not return the data I'm passing, and in debug, it sends me the following error: This error only appears when I click the button that...
asked by 07.02.2018 / 02:07
5
answers

Scroll List DTO in C #

I have the following code in c #: List<Usuario> ret = new List<Usuario>(); UsuarioRepositorio repositorio = new UsuarioRepositorio(); var dtos = repositorio.Seleccionar(); foreach(dtos) { ret.Add(dtos); } return ret;...
asked by 18.04.2018 / 18:34
2
answers

Error creating a new element - WPF Async / Await

When I run my code I get the following error:    System.InvalidOperationException 'in PresentationCore.dll       The calling thread must be STA, because many UI components require this Could you help me correct my code? Simplified cod...
asked by 14.01.2017 / 19:05
2
answers

Type of data to receive file in Asp.net (C #) sent from JavaScript

I have a page made in HTML and JavaScript , in this I have a form with several inputs among them is a input file , and I send them to server through Ajax and JS . On the server side I receive the data of inputs , bu...
asked by 04.01.2017 / 18:18
2
answers

Select row and those data pass them to another aspx

At the moment I only have this idea, when you select a column, the Id is placed in a Label and at the same time it is directed to the other page, dragging the Label3 ( id_cr ), and putting it in another Label on...
asked by 02.01.2017 / 19:25
4
answers

problem with SqlDataReader 3 layers Login asp.net c #

Good afternoon, I would like you to help me, I am doing a log in 3 layers since I'm capturing my values in a SqlDataReader This is myData Layer. public void LogeoUsuario(string cboAgencia, string clave, string usuario) {...
asked by 06.05.2017 / 01:01