Questions tagged as 'c#'

4
answers

How to clear form fields in C #?

I'm doing a project for college, I created a GroupBox and inside it has RadioButton , Label , MaskedTexbox and TextBox . When I click the cancel button I cleaned MaskTexbox and TextBox and disabled...
asked by 18.01.2015 / 21:31
2
answers

How to add item in array through a foreach?

I'm doing a check in a directory where all the items with a specific extension are ready. I need to add the items in an array via a foreach . Here's part of the code I've tried. DirectoryInfo di = new DirectoryInfo(_caminhoEmail...
asked by 11.10.2016 / 15:35
2
answers

Query Entity Framework with Inner Join and Where

I am making a query using inner join of some tables and a where with only one condition, but the data is not returned in EF, the same query in Mysql works and returns data. Follow the code: string raAluno = acr.getAlunoLogado().ToString();...
asked by 21.05.2016 / 05:45
1
answer

C # - Error after changing from 32 to 64bit

My project was compiling normal, but when I changed from 32 to 64 there appeared a lot of errors. If I ignore and continue several components disappear. I'm new to C #. How can I restore the project to a previous day as I did in Delphi? Follow t...
asked by 18.05.2016 / 13:08
2
answers

Query with related data in the Entity Framework

I'm trying to get data from the materials with the data of your relationships with the tables Unit and TD, but this code below does not return anything, if I do without Include () it returns the data but with the relationship does not bring any...
asked by 20.08.2014 / 16:33
6
answers

Clear a datagridview in C #

I have tried all this already and nothing has served. All are excluding rows and columns. What I need is to clean up the content written on them. datagridview.datasource=null; datagridview.resetbindings(); datagridview.Rows.Clear() DataGridVie...
asked by 14.08.2014 / 20:54
2
answers

Handling related data Asp.net and C #

I'm developing an ASP.NET application, which aims to register events and add clients to these registered events, forming a list of clients for each event. My question is this: In the Events table there are three types of input (integer type -...
asked by 03.08.2014 / 16:52
2
answers

How to read xml with C #

I want to create an application for android with C # using Xamarin, it takes an information "xml" and puts it on the screen, but I can not manipulate xml. I need to look for the "symbol" in the xml and if I find the information and put it in v...
asked by 05.08.2014 / 01:18
3
answers

Shuffle numbers from a list? [duplicate]

Well, initially I do not understand much of a list in C #, but I have a list of type int that will always have 4 elements that are: 1, 2, 3 e 4 , I'm assigning them with .Add , if someone knows another Give me a little help...
asked by 10.09.2015 / 06:20
4
answers

Create const string array in C #

Is there a way to create a constant array of string ? Something like: class Teste { public const string[] Array = new string[] {"a","b"}; } But it does not compile. In this case no would replace const with static read...
asked by 10.09.2015 / 19:01