Questions tagged as 'c#'

1
answer

List of forms in the project

I need a List<> of all Forms in the c # project, so when I start the exe insert all the Forms in the database.     
asked by 26.06.2015 / 14:59
1
answer

How to load DataTable into a DataGrid?

I have DataTable loaded with information in a WPF application. I would like to get this DataTable and load it into a DataGrid . How can I do this the easy way? DataGrid in XAML: <Grid> <Button Cont...
asked by 14.02.2015 / 23:23
1
answer

Define the selected value in a SelectList (DropDownList)

I have a list of vehicle models: private List<ModeloRastreador> modelo = new List<ModeloRastreador>(); I add the result that came from the bank foreach (var m in modelo) { modeloRastreador.Add(new SelectListItem {...
asked by 14.10.2014 / 17:05
1
answer

Entity Framework - N for N, clear list

public class Aluno { public int AlunoID { get; set; } public virtual ICollection<Turma> Turmas { get; set; } } public class Turma { public int TurmaID { get; set; } public virtual ICollection<Aluno> Alunos { get; set;...
asked by 29.09.2014 / 14:29
1
answer

Select [with added functions] group by in Lambda

How do I convert the following select SELECT TOP (60) COUNT(*) AS QTD, SUM(Duration) AS Total, AVG(Duration) AS Media, MIN(Duration) AS Menor, LEFT(TextData, 80) AS TextData FROM Traces WITH (nolock) WHERE (StartTime >= DATE...
asked by 20.06.2014 / 21:23
1
answer

What better way to synchronize desktop app data with webapi?

I have my desktop application that needs to send data (only send) to a webapi, this data can not be sent repeatedly and also after sent, not send again, the desktop app will be in .net (wpf) the webapi also asp .net webapi. The desktop applic...
asked by 30.06.2014 / 19:05
1
answer

Does ODBC not support reading DBF file?

I'm trying to read a .dbf file by following a tutorial I saw on Macoratti's website (obs guess everyone knows). And when you run the method just below, a OdbcException is thrown with the following message: ERROR [IM001] [Microso...
asked by 26.06.2014 / 17:22
1
answer

Error sending file through PostAsJsonAsync method in Asp.Net MVC

In my Controller of a Asp.net MVC project I get from View an image of type HttpPostedFileBase and need to send Web Api using PostAsJsonAsync : var response = await client.PostAsJsonAsync("api/image", im...
asked by 26.06.2014 / 16:03
1
answer

Multiple files to upload [duplicate]

I'm looking for a Jquery plugin that will upload multiple files at the same time. Does anyone know of any to let me know?     
asked by 02.09.2014 / 20:05
1
answer

What is the difference in size and coordinate measurement in Forms from C #

In my project I work with the distance of elements and their size. But on a 600-by-600 screen, when you insert a 100-percent object, it appears to be much smaller than 1/6 of the screen, and when checking the distance from the object's center po...
asked by 05.09.2014 / 15:08