Questions tagged as 'c#'

2
answers

Multi Language ASP.NET MVC

I have an ASP.NET MVC application. And you need to make it multi-language, using a database. I thought of two approaches: Livro Titulo Subtitulo Idioma OR Livro Titulo TituloEN Subtitulo SubtituloE...
asked by 23.07.2014 / 14:55
1
answer

Dependency Error

I'm using BackgroundWorker private BackgroundWorker BGWorker = new BackgroundWorker(); BGWorker.DoWork += BGWorker_DoWork; BGWorker.RunWorkerAsync(); private void BGWorker_DoWork(object sender, DoWorkEventArgs e) { ObterInformacoes(...
asked by 05.03.2015 / 19:25
1
answer

How to concatenate properties of a single List with LINQ?

I need to concatenate two properties of each item in my list, in the example below it works but would like to know how I can do the same thing using LINQ instead of foreach ? public partial class Form1 : Form { public Form1() {...
asked by 05.03.2015 / 13:27
2
answers

How to remove unused resources?

Is there any way or extension of Visual Studio that makes it possible to search for unused resources in the application?     
asked by 11.03.2015 / 12:01
1
answer

Primary key composed with entities in the Entity Framework

I need to make a composite primary key relationship in the entity framework using the entities themselves. public class ProjetoDocumento { public Projeto Projeto { get; set; } public Documento Documento { get; set; } }     
asked by 13.03.2015 / 04:27
1
answer

Exchanging Entity Framework EDMX by Code First

I have an application with EF5 using EDMX modeling and I have much more experience and affinity with Code First. Does anyone have any idea / tutorial on how to migrate from EDMX to Code First without changing the database and entity classes?   ...
asked by 10.03.2015 / 13:42
1
answer

Error decrypting string

I have a method for encrypting and decrypting data. I tested it in Console Application and it works perfectly. When I take this method to the controller, I get the following error:    Invalid length for an array or Base64 string. This occ...
asked by 21.01.2015 / 18:28
3
answers

Confirmation of form closure

I'm trying to create a confirmation for when the user tries to close a form with a button, or by x button, Alt
asked by 03.03.2014 / 17:07
2
answers

Pass values from one form to one method in Model and return the result to another textbox on the Form

I have a very simple form with 3 textbox and a button. I would like to get the value of the first two textbox by clicking the button and move to a method present in my model and after that return that result to the third textbox . I'm havin...
asked by 20.03.2015 / 15:52
2
answers

Communicating a Windows Service Project with a Windows Form Project

I just developed a Windows Service project (this will stay running to check for system updates, via ClickOnce). I need this Windows Service to communicate with a Form. I know that it is not possible to create a Form within a Service. What is the...
asked by 01.04.2015 / 20:18