Questions tagged as 'winforms'

1
answer

Error in index and ListBox

This is my code: public static ListBox listBox1 = new ListBox(); Form2.Globals.listBox1.Items.Add(Form2.Globals.din); Form2.Globals.listBox1.Items.Add(Form2.Globals.dequi); Form2.Globals.listBox1.Items.Add(Form2.Globals.demer); Form2.Glob...
asked by 07.12.2016 / 15:53
1
answer

How to open a form with only the type name

I have a DataGridView on my form, remembering that it gets the name of the forms from the MySQL database. I have tried some ways to click on the name of the form in DataGridView and open it, but I did not succeed. Table e...
asked by 10.10.2016 / 15:13
2
answers

How to delete a specific line from a file?

My goal is that when the user removes an item from a Listbox , the program deletes a particular line from a file. I have this text in a file .txt : linha1 linha2 linha3 No Listbox contains the contents of the .txt...
asked by 09.08.2016 / 14:54
1
answer

Custom installation path through SETUP

When I publish the application of windows form, it already generates Setup by Visual Studio 2010 which, when running, installs in "program files" in Windows 7 the Installation. I would like to create a directory named c: \ CartorioScanner \ and...
asked by 19.05.2016 / 19:14
1
answer

Report ASP.NET with Windows Forms

The problem is the following, I work with SAT-CFe and the communication with this is done via USB, which makes it impossible for my web system to communicate directly with it. What I did, I created a desktop application that does this communi...
asked by 30.09.2016 / 21:05
2
answers

Loading Grid data with CheckBoxColumn

I'm creating a form to register a license for a product. This form serves to record which solution a client has. In the form to add a product you only have to select product and customer . I'm having a hard time crafting the loading...
asked by 10.03.2016 / 13:02
1
answer

How to disable the keyboard in C # Windows Form?

Hi everyone, I'm experiencing a problem with my application when I press the ALT key, I'm not expecting any kind of interaction through the keyboard, but even then this key only gives this error So I do not know why this error, I think it's...
asked by 17.11.2015 / 19:52
1
answer

How to update a TreeView of directories in C #

I have a TreeViewMS component (the one with Multiple Selection) listing the system directories on a Form. I created an event on the Form that when pressed F5, this TreeView will refresh (if some new directory on the system or not). It even...
asked by 25.04.2016 / 16:29
1
answer

WindowsForms - C # - ReportViewer - Compound object

Good afternoon, I'm starting to develop reports using ReportViewer for Desktop applications using WindowsForms (C #). I'm having problems with objects made up of others, for example: class Produto { public int Codigo { get; set; }...
asked by 11.04.2016 / 23:05
1
answer

How to add columns and values in the columns in a ListView at run time?

I have ListView listViewListaChamada and I'm trying to add columns and values to the columns corresponding to my ListView listViewListaChamada , but I did not succeed. I created the function below to popular my ListView: private v...
asked by 16.12.2015 / 21:02