Questions tagged as 'c#'

1
answer

How to plot routes in a C # Windows Forms application from latitude and longitude

Hello, I would like to know how best to display a route from the latitude and longitude that are in the database in a C # Windows Forms application. I've already searched the web and I've found something similar to what I need, link But I still...
asked by 12.02.2015 / 12:16
3
answers

Difficulty in popularizing GridView

I have a screen that I query clients and fills in a grid with the information that comes from the database, my project is layered up to where I'm working, but I can not fill in > grid with some information, I have the following situation insid...
asked by 09.02.2015 / 23:34
1
answer

Is it possible to use C # + Client Delphi server?

C # has a very good framework , this would help a lot when creating a webservice server between the client and the database. Delphi already has many components that help when developing a commercial automation application. Is there any im...
asked by 11.03.2015 / 17:35
1
answer

An object with the same key already exists in the ObjectStateManager. The ObjectStateManager can not track multiple objects with the same key

I have a problem with a bit annoying, I'm trying to do an update using the Entity Framework , but when it arrives in SaveChanges (); the following error appears. An object with the same key already exists in the ObjectStateManager. The Obje...
asked by 13.03.2015 / 20:32
2
answers

Insert time and time into the database [closed]

I want to insert the time and date separately into the database, which has the timestamp and data fields, respectively. I have the following code on the button that inserts: SqlCommand sqlInsertCabecalho = new SqlCommand("Ins...
asked by 22.04.2016 / 15:48
1
answer

Apply style to the first line after \ n

I have a textarea that would receive a text. The style application will be minimal, so I did not want to use some editor like CKEditor, for example. I believe the easiest way to work is to apply a style to the item /n I'll be ge...
asked by 26.01.2015 / 15:04
2
answers

No parameterless constructor was defined for this object

I'm building an ASP.NET MVC5 application using DDD and I've separated my IoC layer from my web application. In my controllers I have parameterized constructors to receive an instance of my class of services. I am using Ninject, in this I created...
asked by 22.01.2015 / 19:49
2
answers

Error when closing Forms

I have the following code snippet to close my application. private void frmAgent_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("Deseja realmente fechar o sistema?", "Atenção!", MessageBoxButtons.YesNo, Me...
asked by 22.01.2015 / 16:20
1
answer

Static Interface Method

I have a class to encrypt data. But it will be used as a DLL, and for this I need to create an interface to show the methods (I tested without the interface and it did not work). However, it contains 2 static methods, and I'm getting an error fo...
asked by 19.01.2015 / 16:16
1
answer

Error Login Asp.net MVC

I can not validate my login, follow the code below: public ActionResult Login(FormCollection collection) { AlunoAplicacao bdAluno; bdAluno = AlunoAplicacaoConstrutor.AlunoAplicacaoEF(); var Aluno = bdAluno.ListarT...
asked by 13.01.2015 / 17:49