Questions tagged as 'c#'

3
answers

How to use Lambda expression in ListListobject?

Good afternoon I'm developing an application, which returns a list of note items list, however, I need to populate some fields with the values of each list of items at a time, however, I'm not able to implement the Select () or Where () of the l...
asked by 23.02.2017 / 19:39
1
answer

Problem when you disable Backgroundworker

I am creating in my main form a BackgroundWorker object and I have two click events, one to activate and the other to disable backgroundWorker, but the method of disable is not working. BackgroundWorker worker; public FrmPrincipal() { Initi...
asked by 06.03.2017 / 22:29
1
answer

Code first migrations does not work

I made a separate layer called 'Date' public class Context : DbContext { public Context() : base("EscolaContext") { } public DbSet<Escola> Escolas { get; set; } public DbSet<Turma> Turmas { get; set; } publ...
asked by 23.02.2017 / 18:11
2
answers

C # - Reference a variable from another method [closed]

I have two methods and I want to get a variable from one method to another. It is the base64 variable that is in the base64Decode function. The code is as follows: public class WK_UpdateAlvo : CodeActivity { [Input("StringFi...
asked by 19.08.2016 / 11:49
1
answer

Calculation in a DataGrid. W#

Hello. Is there any simple way, working directly with db of doing calculations in the cell of a DataGrid. Situation: I have a Column Qtd , another ValorUnitario and another ValorTotal of a certain item. I would lik...
asked by 15.08.2016 / 15:18
2
answers

Equivalent to C # Form.ShowDialog () in Java

I'm starting now in Java, there's a feature I use a lot in C # which is NomeDaTela.ShowDialog(); . I wanted to know a similar code that does the same thing in Java.     
asked by 16.01.2017 / 16:28
2
answers

Perform insert into C # List [closed]

Can one give an example of how an sql insert would be in a list in C #?     
asked by 28.07.2016 / 03:00
2
answers

Save image to directory without SaveFileDialog

I'm developing an inventory control application and in this application there is a product registration screen: TheimagesoftheproductsarebeingsavedintheMySQLdatabase.Ireceivedsometipsanditwasnotrecommendedtosaveimagesinthedatabase,becausethe...
asked by 26.07.2016 / 16:15
1
answer

C # When you open form 2 wait 5 seconds and open form 3

I need to load form 2 and wait for 5 seconds to automatically open form 3 how do I do it? private void LetTheGameStart_Load(object sender, EventArgs e) { timer1.Start(); } This is the only code I have right now     
asked by 25.07.2016 / 16:43
1
answer

Calculator does not detect double-digit numbers

I'm doing a calculator in C #, but calculator, I do not know why, it does not detect numbers with 2 digits, like 11 + 1 = 3, the calculator is detecting as 1 + 1 + 1. the code: using System; using System.Collections.Generic; using System.Compo...
asked by 03.08.2016 / 12:11