Questions tagged as 'c#'

2
answers

I want to add a program to my project to run it with the System.Diagnostics.Process.Start ();

Good, waiting for your kind help, the problem is this, I am developing a windows form application in C #, I have a form, to run an external application using the System.Diagnostics.Process.Start ("file address" ); In my form, I have a button...
asked by 02.10.2017 / 01:40
1
answer

invalid attempt to read when reader is closed

I'm having problems with an exception thrown at me by an application I'm developing with c # and MySQL. The exception is: "invalid attempt to read when reader is closed." and it happens to me when I enter for the second time a code that I should...
asked by 29.09.2017 / 17:10
2
answers

How to Enumerate rows in DataGridView in c #

I have a question about how to fill the rows in a datagridView in c #, I did this but I want it to be shown automatically without having to add a column private void dataGridViewCatalogoPartesTotal_CellValueNeeded(object sender, DataGridViewCe...
asked by 03.10.2017 / 16:40
1
answer

MySql ExecuteReader does not bring results [C #]

good, I have the query, I am with a small project in C #, but I have the problem that a query that when executing it in mysql brings me the results correctly but when it is executed in my code, it recognizes me that it returns a row, but when I...
asked by 23.09.2017 / 23:54
2
answers

Matrix problem c # select couples

First of all explain that the "exercise" that I try to do is a small set of pairs, in which you enter some coordinates and you are shown the value stored in that coordinate. At the moment that two of the values of the coordinates that you have e...
asked by 22.09.2017 / 11:43
0
answers

How to prevent the network user account from being blocked when logging in incorrectly?

We have a series of applications developed in C #, in which we log in with the network user. The fact is that we do not know (after trying several paths), how we can do it, if it is possible, so that after a certain number of times you log in in...
asked by 27.09.2017 / 09:53
0
answers

The issue of generating the voucher ticket as I add the Qr code

void Ticket() { ClaseTicket ticket = new ClaseTicket(); ticket.TextoCentro(" Muscle&Fitnes"); ticket.TextoCentro(" Casa Matriz"); ticket.TextoCentro(" Mercado Mutualista");...
asked by 04.10.2017 / 04:30
1
answer

Restart service when generating exception

I have a service that receives events by TCP running, the problem is that when an exception occurs the application is blocked, what I want is that when this exception occurs, I restart the service. using System; using Logic; namespace TestsCo...
asked by 04.10.2017 / 00:50
1
answer

Play video with VLC wpf

I'm working with VLC to play videos in WPF I get the following error    An exception of type occurred   'System.ComponentModel.Win32Exception' on Vlc.DotNet.Core.Interops.dll   but it was not controlled in the user's code Additional informati...
asked by 18.10.2017 / 16:51
1
answer

How to obtain data from a selected cell in datagridview c #?

I have a Datagridview named dgv , in the doubleclick event of this * dgv * I need to get the value that cell where I made doubleclick , the name of the column where that cell is and the value of the first row where that cell is. I enclose...
asked by 23.09.2017 / 00:13