Questions tagged as 'c#'

0
answers

I am exporting data from a datagridview to an excel

I need to export the data that I am entering in the datagrid to an excel but it gives me the following error Exception of HRESULT: 0x800AC472 The code is as follows: using System; using System.Collections.Generic; using System.ComponentMo...
asked by 29.04.2018 / 17:57
1
answer

Fill a Textbox with a selected item in a ComboBox C #

I have a database in Access in which there are 2 fields called Base de Datos and another one called Tipo de Usuario . I would like that when selecting an item in the combobox, the type of user that it is appears in the textbox of...
asked by 25.04.2018 / 03:39
1
answer

Fail to add ADO.NET element

I just downloaded the Visual Studio 2017 , I have XAMPP also in the latest version, and so does the Workbench 6.3 . Also lower the Connector/Net 8.0.11 to make the connection. But at the time I try to add an ADO.NET entity data mo...
asked by 04.05.2018 / 19:36
1
answer

The function or procedure has too many arguments

Help me with this error occurs if I execute a stored procedure more than once in the following process: the error occurs inside the foreach when it enters a second time public string habilitarcredencial(int idusuariom, GridView sistemas, int r...
asked by 30.04.2018 / 03:59
1
answer

The monkey's game

I started to practice a bit with the POO, because I do not master the stage very much and I wanted to put into practice some knowledge that I have. Make a small game where a monkey is given to eat fruit (Parent class), among these fruits you hav...
asked by 22.04.2018 / 16:27
0
answers

How to pass a UserManager object to the Initialize class

I have a class in asp.net core 2.0 called Initialize that has a method public async static Task SeedData(IServiceProvider serviceProvider, UserManager<ApplicationUser> userManager) { } I want to call it from my Startup class as follo...
asked by 22.04.2018 / 22:29
0
answers

Why do I get this error when an inner join query?

because if I do it with a normal query it does not give me this error, but if I do it with a query with inner join it throws me the error of the image This is what I want the query to do, obviously with the inner join it would show the...
asked by 21.04.2018 / 17:02
1
answer

Notifications with FireBase Cloud Messaging and C sharp

I have a problem since yesterday and I want to know if it is really possible to implement it. I have an application in C # desktop and another in Android. What I would like to do is, in the case something is done in the desktop application (b...
asked by 19.04.2018 / 23:40
1
answer

Load id of an object in a combobox

In C #, I need to make a combobox that shows the description of an object but also loads the id of that object without showing the user that id.     
asked by 19.04.2018 / 16:01
1
answer

Can a checkbox be validated with errorprovider?

I have 2 checkboxes one to select "YES" and another to select "NO", I have validated some controls like textbox or combobox with the ErrorProvider control, I wonder if that validation can be done with a checkbox so that the symbol of error next...
asked by 19.04.2018 / 16:43