Questions tagged as 'winforms'

1
answer

Change Windows Forms window style

How do I change the style of my window to a RibbonForm. Being that in matter of colors already is tranquil. See the image: And now how do I use the CreateParams method to change the title and center it and create a glow effect on a...
asked by 27.06.2014 / 18:34
4
answers

C # Textbox stop receiving after the comma

I need a textbox to stop receiving values after the comma as soon as I hit 2 houses. For simplicity, think that the text has a border after the comma, but none before it. Example: Enter the number 2.99. Therefore, whenever the user trie...
asked by 10.06.2016 / 17:33
1
answer

ComboBoxes that share the same DataSource, change the selection together

I'm doing a production order project and I have 7 combobox picking up the values from the same table (which are those of raw materials). I am using this code in load of the form to load the combobox: cmbMP1.DataSource = bllprodutos.DtMa...
asked by 06.06.2016 / 18:17
1
answer

How to set column width of Grid View?

I would like to know how to set the width of columns of DataGridView manually. My first column must have a fixed value and the other columns must "fill" the grid, so that they are the same size.     
asked by 25.11.2015 / 12:20
1
answer

Error in query in bank with Linq

Good evening! I'm trying to perform a query on a mysql table, using linq, and present that result in a gridview to the user. I have the table below: I'm not looking for all the columns in this table, just a few for this I'm using the code be...
asked by 09.06.2014 / 01:46
1
answer

How to validate USB Serial port name

I'm doing the rationalization of a scale in C #, I can communicate with code all right, but when I connect, I need to specify the port name, I have other devices connected and the port name varies from machine machine. Can anyone help me val...
asked by 10.08.2018 / 19:25
1
answer

How to put a page to print inside the application code?

I need to put a print page inside my code, ie I will not print an existing document, nor the application screen, I want to mount the code with the elements I want. I have an array and I just want to add text that is in it to my document. I...
asked by 08.10.2015 / 21:14
1
answer

ProgressBar and BackgroundWorker in C #

I'm creating an application with Firebird 2.5 in which I need it to read a .sql file with instructions to populate the database if these processes have not yet been done, because it is a bit long and because I do not know I want to...
asked by 14.01.2016 / 21:45
2
answers

How do I update backgroundWorker.ReportProgress () through a class in another project?

I read a text file that contains data from another database, load that data line by line into a class, edit the required fields, and then save it to the new database. This insert processing follows the following pattern: In View , I...
asked by 05.02.2014 / 10:59
1
answer

List non-visual component

I've tried several ways to list all the non-visual components of a form, such as: OpenDialog , ImageList , TableAdapters , and so on. but without success. To find the controls on the screen, I got a Foreach in the Co...
asked by 19.11.2014 / 21:15