Questions tagged as 'c#'

1
answer

C # Installer - Windows logs

I am generating a windows form application installer in visual studio, but what I am looking for is that when installing the application on the computer some windows registers (HKEY_CLASSES_ROOT) on the computer, someone knows if this is pos...
asked by 09.01.2018 / 17:10
2
answers

Problem: Set SelectedValue in DataGridViewComboBoxColumn, C #

A DataGridViewComboBoxColumn does not have the properties SelectedIndex , and SelectedValue . However, I want to get the same behavior of SelectedValue    I have a DataGridView that contains several columns of whic...
asked by 09.01.2018 / 20:23
1
answer

I want to read rows from a database with EF Core

When I want to use the method: public async Task<IActionResult> Index() { return View(await _context.Students.ToListAsync()); } The ToListAsync method does not come out and gives me an error.     
asked by 10.01.2018 / 04:43
1
answer

Create a calculator using ASP.NET MVC

I'm doing a small exercise of operations consuming a Web Service, but I can not find a way to show the result in the view, I'm not using Model. Controller public ActionResult Index() { return View(); } [HttpPost] p...
asked by 09.01.2018 / 17:11
1
answer

The type 'Servicios.WS1' is ambiguous

I have just developed a Web Service that will be consumed by an App made in Xamarin. When I try it on the localhost there is no problem, but when I publish it on the web it gives me the following error:    The type 'Services.WS1' is ambigu...
asked by 18.12.2017 / 18:49
1
answer

how can I save data inside a table c #

How can I save data within a table according to the condition? this in my code: List<USUARIO> usuarioList = new List<USUARIO>(); //instanciar la tabla usuario int numDía = 0; DateTime diaAnterior = Date...
asked by 22.01.2018 / 14:08
1
answer

Get public ip of the C # device

I'm trying to get the public ip of the team. In addition to additional information such as the type of browser and the location of the public IP obtained. One of my main questions is to know if there is a place where this information can be obta...
asked by 22.12.2017 / 01:45
1
answer

How do I make an action last for a few seconds? Unity c #

I need help in an action, that is to say that I have a collision function, what I want to do is that when the player object collides with that object that has the collision method my player turns red by the time that has entered the field of col...
asked by 07.12.2017 / 02:03
1
answer

WPF Differences between Grid and StackPanel? [closed]

What are the differences between these two containers? I read manuals but I can not see when to use each other ... taking a simple google image of software graphic environment, are the Grids supposed to be marked in yellow and the stack...
asked by 07.12.2017 / 14:00
1
answer

Center Header of a GroupBox

Can I somehow center the title (Header) of a GroupBox so that it is always established in the center of the control itself? I do not know if there is any property that makes it easier for me to do what I want ... I'm reviewing th...
asked by 10.12.2017 / 10:38