Questions tagged as 'winforms'

1
answer

Manage DataTable with lots of information

I have here a "small" problem with a DataTable . From a SQL query I'm getting a huge amount of records (> 1,000,000 ), and although the query is relatively fast, loading DataTable from Fill() is extremely slow and, in some...
asked by 31.08.2018 / 15:32
1
answer

Customize calendar C #

In the system I'm doing, I need a calendar that only has the weekends of each month enabled to be selected, the rest is deleted. How can I do this in C # Winforms? I searched the internet and here in the Forum and did not find anything exa...
asked by 17.12.2014 / 22:15
3
answers

Copy file with progress

How do I use the function in C # File.Copy(string path); to copy a file by incrementing a value in a ProgressBar ?     
asked by 28.06.2014 / 03:33
2
answers

How to pass control values between different windows?

And I have a question here about programming in C #, which I'm not sure how to do. Well, I'm first with a Windows Form Application C # program, in it I created 2 forms, form1 being the main one, where there is a menu that would be to choose a...
asked by 29.07.2014 / 05:20
2
answers

Find out if a control is a button

I have the following code to change the color of the buttons that are in a panel: private void mudaCorBotao(Button bt) { foreach(Control b in Panel_esq.Controls) { if (/*[O que devo colocar aqui?]*/) { b.Bac...
asked by 23.04.2017 / 01:43
2
answers

Problem in running tasks with two buttons in the same form in C #

I'm new to C #, so forgive some rookie error. I need to put two buttons on the same form, one to call one form, and another to execute a function I'm trying like this: private void button1_Click(object sender, EventArgs e) { d...
asked by 03.05.2017 / 06:40
3
answers

How to make visual form inheritance in Windows Forms?

I have a form base that will be form 'Father', with 3 buttons in it. Add, Delete, and Change. I'm going to use formbase to standardize my registration screens, so each registration screen when I click 'Record' will execut...
asked by 05.11.2015 / 16:28
1
answer

Impact of Garbage Collector

The project here is done in Windows Forms and we do not manage the memory very well because it is a legacy system that has several years running. We are currently experiencing problems with a lack of memory on the computers where the system...
asked by 20.09.2016 / 19:36
2
answers

How to hide column of DataGridView?

I have the void PopulaGrid(DataGridView grid, SQLiteDataReader dados) function that feeds my dataGridViewAlunos data, I would like to know how to hide the first column of dataGridViewAlunos which is the column correspondin...
asked by 13.12.2015 / 02:23
3
answers

Combobox in Database

I always used Delphi and there was a component called DBLookupcombobox where it was possible to list the data of a table and use the ID field of this referenced saving in the main table, for example: In an Employee registry I have...
asked by 01.02.2015 / 03:21