Questions tagged as 'c#'

1
answer

Send a 'TAB' when pressing the 'Enter' key DataGridViewCellEndEdit, C #

I'm trying to edit the value of a Celda of DataGridView after the event CellEndEdit by pressing the% key Enter send by code a TAB I'm currently using the Event KeyPress and the EditingControlShowing o...
asked by 10.01.2018 / 20:02
1
answer

Difference between tuples and other objects

What is the difference between tuples and collections, list or dictionay . Comparisons can be made in the tuples , which is the advantage of using them.     
asked by 10.01.2018 / 21:23
1
answer

Face with movement by console in C #

I have a problem executing a function in console, I want to make a face move from right to left but the movement does not run when I add the function of the eyes, it was my logic to put two functions apart and not only in one. static void Main...
asked by 14.01.2018 / 16:43
0
answers

OnTextChanged EditorFor c #

hello I have a EditorFor and I need that when this empty I fill a list <div class="input-group b-r-xl"> @Html.EditorFor(model => model.Buscar, new { htmlAttributes = new { @class = "form-control", placeholder = "Busqueda por...
asked by 19.01.2018 / 15:48
1
answer

Load variables depending on selected item MVC C #

Inquiry Good, I would like to save variables by default after selecting an item in a select (to then insert them into the database). In my case the select "State of work" (which is loaded by call to database). The idea is that depending on th...
asked by 08.01.2018 / 21:25
0
answers

How to use a prepared statement from mysql in WPF

I am adding columns dynamically from rows with the following prepared statement in mysql. SET @sql = null; SELECT GROUP_CONCAT(DISTINCT CONCAT( 'SUM(IF(PC.id_competencia=' ,PC.id_competencia ,',PC.puntaje,0) ) AS P...
asked by 08.01.2018 / 23:23
1
answer

how to download a file using webbrowser?

someone could guide me with this, I want to download a file from a web page without showing using the webbrowser control, without displaying a download dialog box, which is downloaded automatically. The item I want to download has the following...
asked by 09.01.2018 / 03:02
2
answers

error in control from static method c # [duplicated]

I have a problem in bindear a gridview, since I need that when finishing the operations of a static method recharge the data of a gridview, place a breakpoint to know where the error was and it marks me when I assign the datatable to the datas...
asked by 05.01.2018 / 00:06
2
answers

Save Header Detail EntityFramework

I am developing an application where I need to keep an invoice, where the client and the detail of said invoice, here the code: using(Context context = new Context()) { Cliente cliente; if (clienteActual != consumidorFinal) {...
asked by 05.01.2018 / 04:15
0
answers

get the image of a signature pad and record it in different media / formats

I have a signaturepadcanvasview control that allows me to capture the stroke but now I need to record it and I can not find how. Searching the internet, I only see ten entries, and what I see is using an Async function with wait, but I can not...
asked by 14.02.2018 / 03:02