Questions tagged as 'c#'

3
answers

Return JSon value in C #

Good morning / afternoon / night SOes, It's been several days since I've been trying to make a statement and I can not hit the key. The topic is the following : I have to add to a Contract depending on which one, a letter in front: "A"...
asked by 09.08.2018 / 16:24
2
answers

Problem with where in LinqToExcel

I'm using LinqToExcel to read the data in a book, and it works fine, now what I'm trying to do is put a clause where, to get cleaner data. I have this var resultado = (from row in book.Worksheet(NombreSheet)...
asked by 29.04.2016 / 00:00
2
answers

WPF reuse view from different modules

What is the best way to reuse an vista.xaml, which belongs to another class library (another module) in WPF using MVVM?     
asked by 13.04.2016 / 18:01
2
answers

Get line breaks of a textarea with JavaScript

I have a text area. <textarea style="font-size:15px;text-align:left;width:500px;height:150px" class="control-label" id="txtTextoTemplate">{{txtTextoTemplate}}</textarea> This text, I need it to modify a text that I use in conju...
asked by 06.07.2017 / 17:33
3
answers

C # mysql reader.read ()

I'm trying to read take the idphone from the phone table, but the reader1 collects the data from this table rarely and almost always he does not. Corroborating that the data I am looking for exists in said table with the search pattern....
asked by 24.04.2016 / 17:14
2
answers

Keyboard shortcut to generate comment for functions in c #

I have functions in c # aspx in visual studio 201 with 15 parameters approximately    function x (param1, param2, etc ...) {} and I want to add documentation at the top for each parameter    / * @ param1       * @ param2       * etc....
asked by 01.02.2017 / 18:29
2
answers

Help, I can not run external .bat from my C # windows forms application

I'm designing a program in Windows Forms C # and I have the following problem: The program has a button that when clicked, it executes a .bat that is in a location of the pc. I've tried running .exe in this way and it's perfe...
asked by 07.06.2018 / 16:08
1
answer

save pdf image

Good afternoon. I have a theme when trying to save a pdf document in a local folder. With openFileDialog I'm not allowed and with itextsharp I do not understand how to do. What I need is from my windows form, a dialog is opened, I can s...
asked by 13.10.2016 / 16:46
2
answers

I lose the reference in my Class with several constructors

I'm starting to do my tests in C# and I'm always running into the same problem. When I create a class and I create several constructors, I always fail the constructor that does not contain parameters. Within the class, this constructor...
asked by 25.07.2017 / 20:07
1
answer

Error editing DataGridView

I am working on a Windows Forms app, a problem has arisen in a DataGridView, I am working on the CellEndEdit event, in which when I edit a row and click on another row, it sends me an Exception. The operation is not valid because it causes a...
asked by 11.06.2016 / 19:07