Questions tagged as '.net'

2
answers

Pass variable to another form, dynamically generated C #

I have a relative question of passing the value from one button to another form. I have the following code private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { string cod_evento = dataGr...
asked by 08.12.2015 / 12:27
2
answers

How to pass names of a file to a DataGridView using FolderBrowserDialog?

How do I pass the name of the files that were found inside the selected folder? So far I've only been able to get him to get the file's path and move on to DataGridView and now I want to make him pass the name too. Here's the code p...
asked by 15.12.2014 / 15:28
0
answers

What is the difference between the X.509 and PKCS # 7 terms in digital certificates?

Via a WebApi .Net 4.6.1 I'm integrating with a service that requires data to be sent on a TLS 1.2 connection digitally signed using the PKCS#7 pattern, but when checking an integration example , I realized that the implementatio...
asked by 12.12.2018 / 18:47
1
answer

Object reference not set to an instance of an object

I created a DLL with the "Register COM Interop" option in C # where some WebServices from different prefectures are consumed. I use this DLL in a Windows Form C # test application where no error occurs. When using the DLL in a Delphi applicat...
asked by 04.02.2014 / 19:38
1
answer

Validate custom fields of generated classes

To prevent validations made with Data Annotations are lost if the table structure changes, it is necessary to create another class with the fields for validation and a class partial , path that this last class references the class genera...
asked by 19.05.2015 / 19:49
1
answer

DragDrop for Windows Forms .txt files

I would like to know if you can use Drag and Drop in Windows Forms for files outside the application, in this case a .txt (just like in WPF). I just found examples using ListBox. If it is possible, how to get the data from the file dragged? I...
asked by 22.06.2015 / 21:34
2
answers

Left Join with three or more tables with lambda

I have the following query in SQL : select e.idEstado, e.txtNomeEstado, e.txtSiglaEstado, c.idCidade, c.txtNomeCidade, de.txtH1, de.txtTitulo, de.txtDescricaoEstado, de.txtDescription from tbDescricaoEstado de left join tbCidade c on de....
asked by 14.12.2017 / 13:56
2
answers

Compile string as code

How can I compile a string inside C #? Example: Console.WriteLine(\"Hello World\"); . As if it were a eval of JavaScript? I had a project to load a code into a text file or something else.     
asked by 10.05.2014 / 02:10
1
answer

API YouTube V3 - Browse videos by title

Hello. I'm using the YouTube V3 API to fetch videos in a .NET project. It turns out that I have the exact title and need to search for it. In the documentation it is not clear if it is possible to do the title search. API Documentation T...
asked by 21.06.2017 / 15:54
3
answers

WebSocket - c # .NET

I found almost nothing about WebSockets + .NET in google, I would like to know how this server is done using .NET in the future, the idea is to create an application and hardware (Arduino) that communicates with this WebSocket server. Is it poss...
asked by 23.02.2018 / 20:38