Questions tagged as '.net'

2
answers

How to get position of a sublist within another list?

I have a list of bytes and I need to check if it contains a sub-list of bytes in a specific order. How can I make this check by getting the position of the sub-list in a simple way, using the Linq or the List features, that is,...
asked by 25.04.2014 / 21:23
1
answer

How to get command line parameters / file path

I'm developing an application, and I need it by parameters / commands next to the file path. For example, these flags : C:/caminho_do_arquivo -r C:/caminho_do_arquivo -v And in the code would have regions that would identify this comm...
asked by 02.04.2015 / 20:03
2
answers

Refresh Text bound to a DataBinding

I have the following property bound to a label, where the value of this property appears in the text field. So: this.labelPedidosHoje.DataBindings.Add("Text", pedidosIntegrados, "PedidosIntegradosModelo.PedidosIntegradosDia",true, DataSourceU...
asked by 16.06.2015 / 19:17
1
answer

Does the keyword "async" really make the method asynchronous?

I was watching a video (at 31:11 minutes) and it says that async does not actually do this asynchronous, is more a "tip". Since I was in English and I am not fully advanced, the understanding was half empty. To be able to enter the a...
asked by 27.11.2016 / 23:55
4
answers

C # Textbox stop receiving after the comma

I need a textbox to stop receiving values after the comma as soon as I hit 2 houses. For simplicity, think that the text has a border after the comma, but none before it. Example: Enter the number 2.99. Therefore, whenever the user trie...
asked by 10.06.2016 / 17:33
2
answers

Validating date and time

As I do so that in the date field, not saved a date that has passed, for example the one of yesterday and in the hour field do not enter an invalid time, for example 27:00, only the Brazilian hours. Both fields are MaskedTextBox . Date...
asked by 03.07.2016 / 02:08
1
answer

TempData Doubt C # with MVC

I know that TempData has its "life" held until it is used in View . However, if I do in two different controllers, the same identified TempData , I'm killing and over writing them. If the user is using 2 browser tabs, he ma...
asked by 25.11.2015 / 00:41
1
answer

How to set column width of Grid View?

I would like to know how to set the width of columns of DataGridView manually. My first column must have a fixed value and the other columns must "fill" the grid, so that they are the same size.     
asked by 25.11.2015 / 12:20
1
answer

How to create an endless process?

Simple question, how do I make my application process "unstoppable" by the system? I want when a user tries to close the application the message "Access is denied" appears, and when it forces the kernel to terminate the CRITICAL_PROCESS_DIED ker...
asked by 07.02.2016 / 00:50
1
answer

Check which processes are connected to the internet

Is it possible to check which processes are connected to the internet and what is your destination?     
asked by 25.11.2014 / 19:12