Questions tagged as 'c#'

1
answer

Center content of a cell itextsharp c #

I am working on a salary settlement format in c #, with itexsharp to generate the pdf file. But I can not control the alignment of the contents of the PdfPTable / PdfPCell cells. I have this code: /*datos del LA LIQUIDACIÓN*/...
asked by 27.07.2017 / 18:39
2
answers

Delete matrix data

I have this method: static void muestro(int[,] matriz) //MOSTRAR APUESTAS { for (int fila = 0; fila < matriz.GetLength(0); fila++) { for (int col = 0; col < matriz.GetLength(1); col++)...
asked by 23.06.2017 / 15:34
1
answer

Detect from where an event is called - C #

I have an FormClosing event which is invoked by pressing the closing X of the window and also when I execute the this.Close() command. The issue is that I want to detect which of the 2 forms this event was invoked. Event code...
asked by 16.07.2017 / 15:50
1
answer

C # subprocesses and forms

When running a Thread whose method at the end opens a new form, does it not remain open? var thread = new Thread( () => grafica(edad,años)); thread.Start();' I did this and if you open the new form but only for a few milliseconds,...
asked by 28.06.2017 / 04:20
1
answer

make the POST request from the controller

I have the need to make a POST request from the controller before loading the view, I want to do this due to a certain condition that is required of me. The condition is:    If I have more than one product under contract show a "Menu" with...
asked by 22.05.2017 / 20:45
1
answer

Conforms array in C # with key string

I have the following problem, I want to make a array in C # where the key is a string and then separate the key from the value with a foreach in php as the array the following way Eg: $array['key_name'] = "value1"; I searc...
asked by 07.06.2017 / 22:44
2
answers

Choose Gridview rows in ASP.NET

I am extracting information at GridView but I see that they are quite fields that I do not want. How could it be done to just choose the rows that I want? I enclose the image of GridView and everything that comes out....
asked by 09.06.2017 / 19:23
1
answer

How to Delete Time From A Datatime In Query LINQ In C #?

I'm consulting a database of Mysql and I want to show the result in DatagridView my problem is that I display the date with the time and I just need the date I tried with .ToString("dd/MM/yyyy") and .ToShortDateString() but it...
asked by 07.12.2018 / 15:24
1
answer

___ ___ erkimt Listview in Uneven c # ______ qstntxt ___

I am filling a listview from a select to the Oracle database. This is the code.

%pre%

What this result presents to me:

Now ... what I need is for it to look something like this: } }

It would be to group the orders with the same id.

The select to the database is a view that would be this:

%pre%     
______ azszpr220169 ___

Assuming that your query is ordered as you want, that is, the records are correct, what you should do would be something like this:

%pre%

What we are doing here is comparing the order with the previous one. If the order is different, we put all the data we want in the list .. If not, we leave those columns blank, and only fill the others.

This way you will achieve what you need. Notice that if the orders are different, I change the current order. And I start the first one in 0.

This is commonly known as control cuts.

    
___

I am filling a listview from a select to the Oracle database. This is the code. //comado que establece un adaptador entre la base de datos y el programa #pragma warning disable CS0618 // El tipo o el miembro están obsoletos...
asked by 06.12.2018 / 19:20
2
answers

How can I make a sound sound every so often?

I am trying to realize that when a hand passes a coordinate, a sound will sound. The problem arises when passing the hand, which is tried to run constantly since it is a sound of about 2 seconds. Could you do it in a way that you do it every so...
asked by 30.05.2017 / 11:03