Questions tagged as 'c#'

1
answer

Controls do not Appear in Windows 10

After upgrading to Windows 10, the components in my forms are gone, only the cursor appears in the field. I already changed colors from the background, from the fonts, but it did not work. VisualStudio 2013, Net Framework 4.5. Print Windows 7...
asked by 17.02.2016 / 13:42
1
answer

Error compiling Class Library + Microsoft.DNX.PackageManager

I created a Class Library project in Visual Studio 2013 Express using the framework 4.5, but giving a Build in the Class Library the following error occurs:    ------ Build started: Project: AdComFramework, Configuration: Release Any CPU ----...
asked by 17.12.2015 / 12:46
1
answer

How to delimit a txt file, that is, the line length should be 700 characters for all subsequent lines

I created a routine that reads some tables and generates rows as read. At first this is all right. but the txt generated exceeds the size of the fields, for example, one field has size 10 and another size 20 and another 15, the total would be 45...
asked by 14.01.2016 / 17:23
1
answer

Uploading an entity Country related to State

I'm starting in the Entity Framework and when trying to load an entity state, the relational parent entity is coming with null value, what could I adjust in my code to solve? Class Status: public class Estado { ... public int Id { g...
asked by 14.01.2016 / 20:25
1
answer

problem with dynamic proxies ASP .NET MVC

Could anyone explain to me a method for not getting the proxies from DbContext but the actual objects? Here's a case: public ActionResult PegarItem(int anuncio, String remetente, int destinatario) { var context = new ReuseContext();...
asked by 12.11.2015 / 23:33
1
answer

Insert for foreign keys SQL

I'm learning a programming language and I set out to develop a budgeting program. My first hurdle is being to add the values of the primary keys in the foreign keys of the respective tables. This code below works well for this, but after copying...
asked by 15.11.2015 / 18:38
1
answer

Select item in ListBox with Binding?

I have a list of contacts: <ListBox Name="lstContatos"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical"> <StackPanel Orientation="Horizontal">...
asked by 15.11.2015 / 16:14
1
answer

Include nameSpace Default in XML

Sirs, good morning, I am generating an XML from the serialization of a class.cs (schema) and in the output is created the xml (first example) . This will be exported to an external system, but asked to leave the XML equal to (second ex...
asked by 12.11.2015 / 14:33
1
answer

How to mount a list in Controller and mount a DropDownlist

I have the following difficulty. My address class has TipoEndereco , wanted to mount a dropdownlist Do I set up a list in the controller? Can I get her in the view? Thank you.     
asked by 10.12.2015 / 16:38
1
answer

Read / Write information in .cds file

I have taken a project to develop in C #, the project is based on reading information from a .txt file and writing the information to an existing .cds file that is used on a system developed in Delphi. I searched for an API that...
asked by 10.10.2015 / 23:30