Questions tagged as 'winforms'

1
answer

DataGridViewComboBoxColumn loses selected value

I have a DataGridView and bind it through a list. So far so good ... Now I want to add a combobox (DataGridViewComboBoxColumn) dynamically based on another list. In the first line of code I bind my list perfectly. Below it I have the code...
asked by 28.07.2015 / 19:55
1
answer

Accordion in Windows Form?

Hello good afternoon / evening I'm new to C #, someone here has an idea of how I would get the accordion effect on Windows Form just like in HTML using jquery     
asked by 20.08.2015 / 18:37
1
answer

Popular datagrid with threading

I'm contracting a Windows Form application. I am not getting my datagrid popular with a threading , the following error appears:    "Invalid thread operation: datagrid control accessed from a thread in the thread it was created on.  ...
asked by 14.08.2015 / 03:35
1
answer

How to remove certificate messages from WebBrowser?

How do I remove those annoying messages showing that the page certificate is not valid or is it insecure from the System.Windows.Forms.WebBrowser component? I tried several ways and I did not find an alternative ... One of the alternat...
asked by 23.07.2015 / 04:45
2
answers

How to pass names of a file to a DataGridView using FolderBrowserDialog?

How do I pass the name of the files that were found inside the selected folder? So far I've only been able to get him to get the file's path and move on to DataGridView and now I want to make him pass the name too. Here's the code p...
asked by 15.12.2014 / 15:28
1
answer

How do I associate datatable fields with DataGridView columns?

My problem is following, I make a query in the database that returns me a datatable with a wide variety of fields. The goal is to display this query in the datagridview, however, displaying only some of the datatable fields. I had a previous...
asked by 14.04.2014 / 17:03
1
answer

DragDrop for Windows Forms .txt files

I would like to know if you can use Drag and Drop in Windows Forms for files outside the application, in this case a .txt (just like in WPF). I just found examples using ListBox. If it is possible, how to get the data from the file dragged? I...
asked by 22.06.2015 / 21:34
0
answers

The form gets stuck / stuck when I click the datetimepicker

I'm developing an application and I've done 90%, but I'm having a problem with the datetimepicker control. Normally its format is long, but I had to change to 'time' and enabled ShowUpDown as true . When I click on the control t...
asked by 26.10.2017 / 14:13
3
answers

Inherited Form comes with no editing option at all. Use C # and VS 2017

When I create Form2 Inherited from Form1, I can not edit anything on it. Of course the padlock on the upper left has something to do, but how can I solve this situation? Follow the image for the best understanding. Thank you!     
asked by 17.03.2017 / 05:15
1
answer

How to make your program reliable - windows security

I finished a step of a program and we will start putting it into production, however, when running the program, the following message is always displayed: What should I do to make my program reliable? and stop displaying this message?...
asked by 31.03.2017 / 04:56