Questions tagged as 'winforms'

1
answer

Is it possible to create individual events for the instances of a form in C #?

Let's say I have a customer registration form: var frmCadCli1 = new frmCadastroCliente(); And I just called this form: frmCadCli1.Show(); When I call this form, immediately before it is shown the Form_Load event...
asked by 09.12.2015 / 20:29
1
answer

IsolatedStorageSetting on Windows Forms?

I'm used to using for Windows Phone, like this: using System.IO.IsolatedStorage; public void putString(string key, string variable) { IsolatedStorageSettings iso = IsolatedStorageSettings.ApplicationSettings; if (iso.Contains(key)) //A...
asked by 19.09.2015 / 21:32
1
answer

Task.Run locking inside a "tick" (Forms.Timer)

In my application, I created a "Timer" (System.Windows.Forms) that runs every 1 second. In the "tick" event, I put a await Task.Run. For some reason the tick stops running after a while (because it does not print the date and time on the cons...
asked by 01.09.2015 / 21:55
1
answer

How do you deactivate a key in a complete Form?

How can I disable the program's TAB or ALT key? Example: Clicking TAB does not make any changes. Is it possible in KeyDown ?     
asked by 31.08.2015 / 01:36
2
answers

List with large number of items, excessive memory consumption

On my system I have a List<object> , while using the system I'm adding items in it until I get to a certain point where the system starts to slow down. My system may add up to forty thousand items in this list, I have never gotten to...
asked by 07.02.2016 / 03:13
1
answer

Sort tree view nodes

In my tree view I have several child nodes. All nodes are created with numbers because they identify a different file and are composed of the date. How could I order these nodes numerically? That is, type: Raiz 1 2 3 4 A...
asked by 19.11.2015 / 17:00
1
answer

Textbox / TextEntry in a console application [closed]

Is it possible to add a Textbox to an application console?     
asked by 02.09.2015 / 14:05
1
answer

Display date formatted in datagridview

In datagridview has a date field in the format yyyyMMdd and needs to display formatted in the correct form. I tried this: dgvRequisicao.Columns["data"].DefaultCellStyle.Format = "dd/MM/yyyy"; But instead of showing me the f...
asked by 05.07.2016 / 16:07
1
answer

Playing Query Data For DataGridView in C #

Hello everyone, I'm having problems with a listing. I have a DataGridView loading a list of products automatically and a combobox with the names of the categories, the idea is that when selecting a category and clicking the list button, DataG...
asked by 03.04.2015 / 19:12
1
answer

Cut an image every 300 pixel height

I'm developing a Clipping report generator where I need to insert captured images from internet pages. Most of the time it is necessary to cut them and distribute them in the PDF pages. How do I crop an image programmatically every 300 pixels in...
asked by 20.02.2015 / 14:06