Questions tagged as 'windows-forms'

1
answer

datagridview with combo box

Hi, I'm trying to make a datagridview where one of the columns has a combo box TcType {Fuera de Servicio, Normal) ( Canton Type) . The code to fill in the datagrid view is as follows: dataGridViewTcCnf.DataSource = ConfData2.TcCnf.T...
asked by 19.02.2018 / 13:06
2
answers

How can I use the value of a variable with LINQ?

I'm trying to assign a variable to a select using LINQ. My function which makes it evaluate a data set to get the SourceID according to the caption that has been passed into the select. What I try to do is from an application in Windows Fo...
asked by 08.04.2016 / 16:32
2
answers

UserControl bring to the front (have the focus)

I am working on a desktop application (Windows forms) in which my windows are UserControl which I call from a menu that is vertically on the left side, on the right side I have a Panel that serves as a floor where I call the UserControl, but I j...
asked by 29.04.2016 / 20:58
1
answer

Cancel button of a Login C # form

I have a problem with this event code click on the cancel button of a login form. private void btnCancelar_Click(object sender, EventArgs e) { if (MessageBox.Show(@"Esta seguro que desea salir del sistema?", @"Atención",...
asked by 12.10.2018 / 20:03
2
answers

Blank page in ReportViewer

It turns out that I create a report in ReportViewer with data from the database in sql server and I generate it as A4 sheet in horizontal, the issue is that when I put the preview it generates two sheets with one data and another blank , I alrea...
asked by 27.08.2018 / 17:30
1
answer

MySQL query does not show data [closed]

Someone to help me, I'm doing a query in MySQL with C #, but it does not show me any data, this is the query I'm doing: public DataTable Espera(String Programa, String FI, String FF) { DataTable dt = new DataTable(); String...
asked by 02.10.2018 / 00:04
2
answers

Establish that all the fields that they fill in the grid are string C # + Windows Forms

I have a problem filling a datagridview and it is that when filling it some data disappears in some cells, and I think it is because they are established with a predetermined format by the same datagrid when filled, I would like to know how to m...
asked by 02.10.2018 / 18:22
1
answer

Change color datagridviewbutton

Good I'm doing a form in C #. When another window returns a dialog.result.OK I want to change the background color of the% button DataGridView , in this case to green some simple solution?     
asked by 10.07.2018 / 13:00
1
answer

Update UI inside backgroundworker in endless thread with C # and WinForms

I have an application made in Windows forms that is responsible for searching infinitely in a database for tasks to perform. When I execute the code inside the Constructor of the form, it works but at moments it stops when launching new threa...
asked by 05.07.2018 / 17:17
1
answer

How to change the background color of several buttons at once in windows forms?

The thing is like this: I have two forms, Form1 and Form2 . Form1 is the main one and has 20 buttons which each represents a different table of my restaurant. Clicking on any of them opens a Form2 in which you can r...
asked by 28.05.2018 / 03:05