Questions tagged as '.net'

2
answers

Final ASP.NET WebForms?

I would like to know if there is a certain trend in ASP.NET WebForms if "retiring", leaving only ASP.NET MVC, because according to this article the answer would be yes. The author of the article (Ramon Durães) at least in my view is a great conn...
asked by 02.07.2015 / 15:07
1
answer

How to stylize a WPF application to look like Windows 8 applications (Metro style)

I work in a company where they use a system that is very reminiscent of Windows 8, even though I'm on the Windows 7 machine. What I needed to do is to develop a desktop system from my computer (Windows 7) but needed to leave the same face, si...
asked by 10.04.2015 / 19:55
3
answers

Webbrowser - Click on elements of a site

Hello, everyone! It's this, I need to make my program click on an element. Here is a photo to make it easier to understand: link I have tried many things, but nothing successful so far ... I want the button to be pressed My code is li...
asked by 20.07.2015 / 23:39
1
answer

Compiler error or code error?

I came across the following case and I do not know if it is a .Net error or error in my implementation, syntax itself (see image below). condenacaoInsert.qtd_ano_pena=null;condenacaoInsert.qtd_ano_pena=(!string.IsNullOrEmpty(readerCondenacao[...
asked by 19.03.2015 / 16:01
1
answer

Limit the number of rows in a textbox

Is it possible to limit the amount of rows in a% multiline% by using C # .NET 3.5?     
asked by 07.02.2014 / 18:47
1
answer

Send CR LF through the serial port C #

I'm communicating with Serial ( SerialPort ) with a device that needs me to send the CR LF commands at the end of each statement so the device understands that an instruction has been sent to it. The instructions that I should send ar...
asked by 10.01.2014 / 17:44
1
answer

How can I convert a DataTable to a dynamic object?

How can I convert a DataTable to a IEnumerable<dynamicObject> ? For example, I want to convert any DataTable ID | Name DI | emaN --------- ou --------- 1 | x 2 | x 2 | y 1...
asked by 22.12.2013 / 01:45
2
answers

Alternative to new use when implementing methods that return this in daughter classes

Taking the following code as an example: public class Pai { protected string PropriedadeA { get; set; } public Pai Metodo1(int valor) { //Vários procedimentos feitos aqui PropriedadeA = "Resultado do tratamento";...
asked by 22.01.2015 / 22:15
3
answers

How to use GetSetting / SaveSetting in Windows Services

I created a service and configured it as LocalSystem . In the implementation I try to fetch a record saved in REGEDIT by another program. The method GetSetting always returns me empty. Is there any way to recover / save data i...
asked by 17.01.2015 / 13:15
2
answers

Identify pendrive

I need the application to copy a file when a pendrive is connected. Can you identify when the removable disk is connected and the volume name so that the system does not copy to the wrong pendrive?     
asked by 22.01.2015 / 18:43