Questions tagged as 'windows-forms'

1
answer

How to call a method that is general with Activeform?

I have an application with many forms that have all specific methods such as Create, Modify, Save and in the main form I have a toolbar that should access these methods depending on the active form, at this moment I have it but in the applicatio...
asked by 04.01.2019 / 16:56
2
answers

The project sometimes does not recognize me a class

I have a class that I use to generate the custom buttons of my project in winforms, I simply define the font..color and in this way I use this custom button in all my forms. The structure of files and directories that I have is this, within t...
asked by 31.05.2017 / 12:46
3
answers

validate telephone numbers in c #

Good, how can I validate phone numbers in c# but that it only recognizes numbers and () - in its respective format? I have the following code to validate number but not for the above. if (Char.IsNumber(e.KeyChar))//Si es número {...
asked by 31.10.2016 / 18:45
3
answers

Load data GridControl DevExpress using a DataTable

I'm using Windows Forms , GridControl DevExpress , SQL Server 2008 . I try to load a GridControl data using a DataTable . The code is as follows: var dtDatos = GetAll("SELECT EmployeeID, FirstName, LastName, Address FROM Employees");...
asked by 08.11.2016 / 00:03
1
answer

VB.NET DataGridView change image style (tile, stretch, center, zoom)

How can I change in a Picture Cell of a DataGridView, that the image be seen in tile, stretch, center or zoom mode? By default I get the image that protrudes from the Cell and I need it to look whole.     
asked by 29.06.2018 / 06:48
1
answer

Make a checkbox ArrayList

I have managed to put a checkbox array on the Form1.Designer.cs such that: this.caja = new System.Windows.Forms.CheckBox[] {checkBox1 , checkBox2, checkBox3, checkBox4, checkBox5, checkBox6, checkBox7 ,checkBox8 ,checkBox9 ,checkBox10...
asked by 28.11.2017 / 10:23
1
answer

Windows Forms control of file and folder explorer [closed]

Is there any control of Windows Forms style browser of Windows files and folders but that allows to select several files and folders at the same time? Something like this: I found a third-party control on the web called Enhanced Brow...
asked by 30.06.2017 / 18:32
2
answers

TextBox does not select the text when I click on the

I have an application that has a main form (frmPrincipal), within it there are several elements, one of them a groupbox, and this groupbox has been added as controls several forms (frmClaves, frmDatos, ...). Each of these forms has several eleme...
asked by 15.02.2017 / 16:14
1
answer

Export two DataGridViews to an Excel file

I have to add the information of two DataGridViews in the same sheet of Excel consecutively. This is the code I have that only serves for a single DataGridView. Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Inter...
asked by 10.03.2017 / 22:10
2
answers

How can I take a data from a DB and add it to another DateTime data in C #?

My question is this: I am using Visual Studio 2015 , and I am programming in C # for Windows Forms , the case that is I have a variable that is stored in a database of SQL Server 2008 , and the data that is there is of type int . What...
asked by 08.11.2016 / 20:37