Questions tagged as 'c#'

3
answers

Delete a row in Datagrid

I'm trying to delete the line in which it has the focus of a datagrid , I've used the following code: datagrid.Rows.RemoveAt(e.RowIndex); You are returning the following message:    Uncommitted new row can not be deleted. Wha...
asked by 21.03.2015 / 15:41
0
answers

How to start WPF program with a ContentControl already loaded?

I have three ContentControl that I created: ContentControl homeContent = new Home(); ContentControl completeContent = new Complete(); ContentControl individualContent = new Individual(); I want my program to start with the content of...
asked by 14.05.2018 / 21:20
1
answer

Connection Sql Server Bank .MDF does not work C #

My application error when I try to run on another machine, except that on this machine I have nothing from sql server installed, what do I need to run my application on any pc? The following is the error: System.Data.SqlClient.SqlException...
asked by 23.05.2018 / 00:25
0
answers

Asynchronous handler completed while asynchronous operation was pending - C #

Hello, I have some questions regarding the code below. The code returns the following error [InvalidOperationException]: Module or asynchronous handler completed while the asynchronous operation was pending. The main method that calls th...
asked by 15.05.2018 / 17:49
1
answer

What is the correct way to call C # versions?

There seems to be some confusion with the naming of the C # versions and the technologies that are related to it. Is there a C # 2005? Or a C # 3.5? What is the relationship of C # versions with .Net, Visual Studio, etc.? There are books...
asked by 17.06.2014 / 18:08
0
answers

System.FormatException: 'Incorrectly formatted input string.'? [duplicate]

Can anyone explain why this happens ?? price is a label     
asked by 19.05.2018 / 20:38
1
answer

SQLite in memory with dapper generates non-existent table error

I have the following code for creating the table: string query = @"CREATE TABLE GVP_USERS_TAGS( ID integer NOT NULL PRIMARY KEY AUTOINCREMENT, DATEINS datetime NOT NULL DEFAUL...
asked by 18.05.2018 / 22:35
0
answers

Pause the program while executing a C #

I'm having a question about using threads, I want the program to stop responding at some point, and only come back when I determine ... Example: System.Threading.Thread.Pausa(); // Executa código System.Threading.Thread.VoltaDnv(); How...
asked by 18.05.2018 / 22:04
0
answers

Use the WebBrowser in an ActionResult MVC

Hello, I'm using System.Windows.Forms.WebBrowser to fetch an HTML form because I need the value of some inputs of this form: InmyActionResultIcalltheExecuteWebBrowsermethod: TheproblemisthatsometimesallforminputsareloadedandhaveinputCollec...
asked by 11.05.2018 / 02:18
1
answer

IOC - No parameterless constructor was defined for this object

I am doing a project and they are separated in layers, I can call DDD. However I have the following error: No parameterless constructor has been defined for this object. I'm using Ioc, here's how I'm doing: public class NinjectWebCommo...
asked by 11.05.2018 / 03:48