Questions tagged as 'c#'

1
answer

"The best overloaded compatible method has some invalid arguments"

I'm creating a service with a method that has an argument of type List<OrdemPais>() , and passing an object of that type to the method, but at compile time the error appears: O melhor método sobrecarregado compatível com 'Mahikari....
asked by 28.09.2016 / 19:46
1
answer

Foreach in Select and List

I recently discovered that there is a big difference between doing some operations, such as Select and Where , in Queryable and enumerated objects, such as Enumerable and List . This and this question. Kno...
asked by 20.05.2016 / 21:17
2
answers

Trigger event when changing value of a textBox C #

Well, I'm starting in C # and I'm having a problem. I'm working with Windows form. I'm using the TextChange event in a textbox, and with each key pressed in the field it fires the event. I need the event to be triggered only when the field value...
asked by 12.04.2016 / 14:29
1
answer

Using threads in C # without storing in variable

If I start an thread anonymously: new Thread(chat).Start(); and then instantiated it in the same way, does it overlap the other thread ? If not, how should you kill the first thread .     
asked by 10.04.2016 / 12:22
2
answers

Convert a dd / MM / yyy string to DateTime

I have a date filter that should receive the information from a textbox and convert it to DateTime, so that I can compare it to another date. The textbox sends the date in the format dd / MM / yyyy, but at the time of converting values where the...
asked by 08.04.2016 / 18:19
2
answers

EntityFramework StoredProcedure retrieve parameter output

How to retrieve the Output parameter of a storedProcedure? SP Example: create PROCEDURE StoreProcedure_Name @ParametterWithNummvalue varchar(50) = null, @In_Parameter varchar(50), @Out_Parameter varchar(10) out AS set...
asked by 29.03.2016 / 03:47
1
answer

Placing a dynamic YouTube video in an iframe (asp.net)

Good evening! I'm trying to put a youtube video based on a url stored in a sql database, the problem is that the way I found it to put, works only with some static url, in the following way: <iframe width="560" height="315" src="https://www...
asked by 18.05.2016 / 02:41
1
answer

tabpage - textbox read-only

Good night guys. How are you? I have a form, with a tabpage, and with some textbox, I'm trying to deploy in the load of the page, that the property isreadonly is true. But I'm not getting it, I'm using the following link: private void Comerc...
asked by 08.07.2016 / 01:52
1
answer

How to use Generic Method with Dapper?

I have 2 methods of a generic repository public TEntity ObterPorId(int id) { return Db.Set<TEntity>().Find(); } public IEnumerable<TEntity> ObterTodos() { return Db.Set<TEntity>().ToList(); } But I want to use Dap...
asked by 22.03.2016 / 03:44
1
answer

How can I create a screen with different Views for C #

It is the following I have a system that has some reports wanted to do a single screen (webForm) and as the user makes a report call the screen generates that report and shows on the screen.     
asked by 15.03.2016 / 18:28