Questions tagged as 'c#'

1
answer

Xamarin Studio and Monodevelop are the same IDE?

Hello, I'm going to start programming in C #, but I do not want to use Visual Studio, so I looked for and found another IDE, Monodevelop, but when I went down to Windows 10, the site said to download Xamarin Studio. I wonder if this Xamarin Studi...
asked by 24.12.2017 / 15:00
1
answer

Make global reference in C #

I am creating a simple system of operations with no database in C #. It has 3 Forms, which are: Login.cs , Register.cs and Main.cs . It also has the Conta.cs class, where operations are performed. My question is this: in form Registrat...
asked by 23.12.2017 / 01:07
1
answer

ESocial - Error signing XML

Good afternoon. I'm trying to sign the XML, however I'm having the error below:    Error generating System.Security.Cryptography.CryptographicException: Malformed Reference Element. Searching, I saw that the problem is in the referring...
asked by 26.12.2017 / 19:33
3
answers

Add Text In textbox in certain position C #

Hello, I'm developing a dental software which one of the functions is to select a tooth on a button and add the name of this tooth in a textbox. So far, no problem, but the point is that this textbox is about observations, and I would like the n...
asked by 02.11.2016 / 19:43
2
answers

Saving checkbox information to TXT files

I'm developing an O.S. software where I've broken down the main problems in several checkboxes. All data entered on the screen will be sent to a text file, which will then be viewed by the boss in Excel. My problem is that I'm not able to cap...
asked by 04.11.2016 / 13:04
1
answer

How to delete the line that automatically generates in a gridView windowns form

I have gridView that as soon as it is populated with data, it always generates one more line. How do I remove it? Obs. The grid columns are generated dynamically. if(objPed.ConsultarPedido(Metodos.empresa,txtNumPedido.Text)>0)...
asked by 01.12.2017 / 18:11
1
answer

Console write 2 strings from the list

I created a list in which I added 2 strings: var lista = new List<string> {cliente.Nome, cliente.Sobrenome}; And in the end I wanted it to show like this: Console.WriteLine(lista[0]); But show only the name, why?     
asked by 06.11.2017 / 16:33
1
answer

Map classes that inherit the Id of another Entity class - EF Core

I need to map the Person and Branch classes with one-to-one relationship, where a person will be just a branch and a branch will be linked to only one person, (A PK in Person ID and PK / FK in Branch ID). The Entity Framework Core is getting con...
asked by 17.01.2018 / 21:37
2
answers

Replace in undefined texts

I have a question regarding replace, I am populating values in word but some values I will not have available but if it does not fill in the word will be shown @@ VariableName, so I wanted to know if it has some general replace to put in the val...
asked by 07.11.2017 / 20:55
2
answers

How to transform an array of json objects into a List of objects in C # using Json.NET

I'm starting to learn C # and am getting to do this task, grabbing an array of objects from a json and transform the elements of that array into objects of a specific type and put them in a list. Create a method that does this and returns a List...
asked by 07.11.2017 / 19:58