Questions tagged as 'windows-forms'

0
answers

Filter data in DatagridView, selecting the filter from CheckBox, C #

I am trying to filter data in the DataGridview with the data already loaded, without needing to consult the database. When I filter using the TextBox I do it correctly, but I need to filter the options with CheckBox ....
asked by 31.01.2018 / 15:40
0
answers

Problem trying not to capture what is written in a Textbox

Good morning, Currently I have an application in which you can enter a text in a textbox. There is also a timer every 750 ms that verifies that this text measures more than 12 characters and executes a procedure. When you finish executing the pr...
asked by 16.01.2018 / 16:41
2
answers

Format currency to DataGridView content

Good morning to all, I am trying by means of the following codes to format the currency of the contents of several cells within my DataGridView, which I do not get, if you can help me I will be very grateful. dgvListArtIng.Columns["PrecioU...
asked by 24.01.2018 / 18:05
2
answers

Get the path of a file listed in a combo list

I wanted to know if it is possible to obtain the path of a file which is listed in a combo, I mean, I've put the following code to list the name of the files in a folder in a combo: DirectoryInfo d = new DirectoryInfo("1.76"); FileInfo[] files...
asked by 30.12.2017 / 20:16
0
answers

because I do not get the image in the datagridview cell in c #

happens that I have a list of employees in which they can be those who are high and those who are low then what I tried is to change the image of a cell depending on the state they are using the resource try with this dg_Empleado.Rows[p].C...
asked by 12.01.2018 / 17:37
0
answers

Leave Blank DataTable

Good afternoon everyone, I have the following method through which, by means of a Add button , I am adding various items to DataTable , which are visualize in a DataGridView in list form, the detail that I have is this: when I cl...
asked by 06.12.2017 / 19:38
0
answers

I can not initialize a ReportViewer in VS2017, but in DataTools 2015 it works correctly

I have been having problems with a .rdl report that I made in Data Tools 2015 in a C # Windows Forms project in VS2017. Following this guide I have managed to import my report to the application and associate it with my reportviewer, but when...
asked by 05.12.2017 / 18:46
1
answer

Print a file saved in C #

I'm trying to print from windform, it turns out that when I print the document, I get the blank sheet. This is the code with which I try to print: private PrintDocument printDocument1 = new PrintDocument(); private string stringToPrint...
asked by 06.12.2017 / 02:15
1
answer

protect the unauthorized use of my DLL

Cordial greeting! I have a solution in Visual Studio which has 3 projects: MVC Web Project Desktop Project (WinForms) Project DLL: where it has the logic of the application. Project 1 and project 2 refer to project 3 (the DLL) and...
asked by 04.11.2017 / 17:52
2
answers

Update data in a winform from a Database

I have a winforms application, which draws some controls inside a panel, obtaining some data from a database, and running in an endless while cycle with a time of 5 seconds between each query. the form is drawn correctly, and the data also match...
asked by 31.10.2017 / 23:13