Questions tagged as 'c#'

2
answers

How to display field values of two classes in a DataGridView? [duplicate]

I'm populating a DataGridView object with a list of classes of type List<Curso> , and the way that I populate DataGridView is as follows: meuDataGridView.DataSource = cursos; However, one of the fields in my class C...
asked by 13.07.2018 / 17:02
1
answer

How to tinker with code in a DLL?

The bar code is being generated through a class from a DLL downloaded from the internet. I need to change this barcode, but this class is blocked. How can I play a game?     
asked by 05.08.2015 / 22:50
1
answer

Unity MonoDevelop says my variables do not exist?

I was following the fourth tutorial video of roguelike scavengers , and I came across with these errors when finished. In the fifth video it fixes some, but these have continued, I'm using the latest version of unity ( 5.1f1 I do not k...
asked by 05.07.2015 / 02:18
1
answer

Close file (is being used by another process)

The code I am trying to use is the following (I just modified the path and content), before these lines I check if the file does not exist, ie it only executes this if the file does not exist (not to overwrite the same) File.Create("caminho-ar...
asked by 28.06.2015 / 17:22
2
answers

How to make a write method in the variable in which it extends?

I had an idea to apply in loops and wanted to do a bool.toogle() method where the variable is extended, the method would receive the opposite value. Something like this: bool variavel = true; variavel.toogle(); //variavel agora possui...
asked by 11.06.2015 / 20:51
2
answers

Search in lambda query with logical operators

I have a query query for a report, where some search fields are optional except for date ranges. However, when performing the query, the function always returns values that do not match the parameters I passed at the moment of executing the...
asked by 19.06.2018 / 21:34
1
answer

Download Files by web link C #

I'd like to deploy on a system that I'm making an option to download the files over the web, for pre-defined cloud links that I have. But I'm not able to do this implementation. Can you help me?     
asked by 18.07.2018 / 06:08
1
answer

NullReferenceException in C #

I have a problem in C #, I'm encountering an exception and I can not recognize why it is Exception Details:    System.NullReferenceException: "Object reference not set to an instance of an object." Excerpt of code that throws the excep...
asked by 17.07.2018 / 19:20
2
answers

Hide Menu Tab

I'm trying to hide the nav menu bar when it enters a specific form, would you like to give some example? Thisistheindexofmyform:@usingPagedList.Mvc;@modelPagedList.IPagedList<BlogWeb.Models.Abastecimento><!DOCTYPEHTML><p>@H...
asked by 29.05.2018 / 13:19
2
answers

Move buttons and text box with tab [closed]

Good afternoon everyone, inside windows form I put several text boxes and buttons, but when I navigate through the tab they are cluttered, I know that if I do one by one it will be in order, but it has already been done. Can you change in a simp...
asked by 11.12.2017 / 23:04