Questions tagged as 'c#'

1
answer

void create and T createT

What is the difference between using void and T create Void does not return anything to me and T returns an entity to me, is the use of both is according to the scenario I have, should I use one or the other? It would bring me complication...
asked by 01.04.2016 / 20:03
2
answers

MasterPages with several ContentPlaceHolder

Good morning. The content place and the master page will be used. Even already be in a dynamic way, changing with several links. The problem is that I do not know how to get several different Content Pages loaded at the same MasterPage...
asked by 14.07.2016 / 15:49
1
answer

how to create a rectangle with the mouse in c #

I tried to create a code in c # to create a rectangle with the mouse but it has not worked for me. Can someone help me? public partial class Form1 : Form { public Form1() { } private void Form1_Lo...
asked by 15.07.2016 / 21:47
2
answers

How can you export csv file with asp.net c #

Good I would like that I can be doing an application for which has the functionality to download a file in File Format of values separated by commas Microsoft Excel (.csv) already defined the columns in that file once you download the user wit...
asked by 22.09.2018 / 17:33
3
answers

Counter of Digits in C #

I require a method that can count the even digits in the programming language C #, thanks .... public void Contador_Digitos_Pares(int dato) { //logica de la operacion. return dato; }     
asked by 27.09.2018 / 19:45
3
answers

How to remove the focus from a Windows Forms control

I'm working on a Windows Forms app in which I have a form with a button and a TextBox what I want is that when I press the button to do a process when I finish giving the focus to a TextBox. The code I use is the following: private void OnA...
asked by 29.09.2018 / 14:29
1
answer

Return Object C # by AJAX (Json - ASP.NET - MVC 5)

I am working on an application which contains a 'Kanban' board (Some will know what it is). I am trying to return a C # object, which contains other objects (which would be the tasks that the user has created on that board). What I want to do is...
asked by 12.09.2018 / 13:50
1
answer

Using Object in another Form [closed]

How can I use an object declared on my form 1 to use it on my form2. In my form 1 the user enters some data that is stored in an object declared in the form1.cs and I want to operate that object on my form 2. Thanks     
asked by 16.09.2018 / 23:22
1
answer

Erronea consultation

Hear someone can tell me what my mistake is: public DataTable Programas(int Programa, String LoteI, String LoteF) { DataTable dt = null; String query = "SELECT DL.Programa, IL.Modelo, IL.Color, IL.Cliente, IL.Linea, DL.Can...
asked by 30.10.2018 / 23:53
1
answer

I can not invoke class from my web reference

I have a project in which I am adding improvements but I have the following problem: My WS is in a C # project and my desktop application in vb. which calls and consumes my ws. I just created some new classes as an example "beAuditors"...
asked by 24.10.2018 / 21:34