Questions tagged as 'winforms'

2
answers

How to delimit a string fields in C #

I have a string field for example address in code. This address field receives a 60 character die. What I want is to delimit the address size so that it only receives 30 characters and not above that, even if it truncates the information....
asked by 24.02.2016 / 14:23
1
answer

Connection error

I am creating a Windows Forms application using C # and am having a problem with the connection to SQL Server CE 4.0. The application database is in the AppData folder of the logged-in user. To get the path of the AppData folder...
asked by 28.10.2014 / 16:51
4
answers

Limit number of characters per line

Is it possible to limit the number of characters per line of a% multiline% using Windows Forms C # and .Net 3.5?     
asked by 10.02.2014 / 11:50
1
answer

Report progress for interface of an asynchronous method in C #

I have a Windows Forms application. This application will run some processes that take a while to run, so I would like to run them in parallel. Here's a little of what I'm trying to implement. In the form constructor, I create a generi...
asked by 09.09.2014 / 19:53
1
answer

Why can not I display the MessageBoxButtons if it is not a string?

Why am I not able to display MessageBoxButtons if it is not a string? static void Main() { string texto = "Minha primeira MessageBox"; MessageBoxButtons botao = MessageBoxButtons.OKCancel; DialogResult result; result = M...
asked by 20.11.2015 / 01:15
1
answer

How to create a window without using the GUI builder?

I'm starting to study C # and just like in Java, IDEs provide features that make it possible to build GUIs easily by dragging components. The netbeans has a powerful build tool where you can drag Swing components for JFrame , JDialog...
asked by 21.12.2014 / 02:29
1
answer

Fill Combobox with Dapper

I'm using a combobox component with Dapper , but I'm not able to fill in the combobox correctly, LookUpEdit ctlControle = (LookUpEdit) pr_Controle; var parametro = new DynamicParameters(); parametro.Add("@TABELA_NOME", pr_TabelaNome); parame...
asked by 20.08.2015 / 01:54
3
answers

How to save and load data from a .txt to a gridview?

It's been two days since I've been looking for help with my problem, but everything I think does not help me. I'm doing a simple program, like an agenda, where I put all the records in my store. I do not need anything complicated. I made a...
asked by 27.11.2014 / 18:14
1
answer

Help - C # how to update comboBox? autocomplete type

Firstly I'm developing a system in C # and using Sql Server as a database. I would like to perform the following task: When something is typed in the comboBox I update myself, through a search in the database, example: I type A in the comb...
asked by 17.01.2015 / 10:22
1
answer

In WinForms how do the datepicker cursor move when typing the date?

The question is about the DateTimePicker control of WinForms. When we enter the date, instead of choosing the calendar, the cursor does not scroll. That is, we enter the two digits of the day, and instead of the cursor move to the month, it cont...
asked by 06.04.2018 / 06:05