Questions tagged as 'winforms'

3
answers

Do not open more than one form at a time in C #

I am developing a system that is practically a CRUD. My problem is this: when I open a screen of my system, if I click the menu to open again, you have two windows open, ie if I click several times in the menu you will have several windows op...
asked by 24.02.2017 / 20:32
1
answer

Interface freezes while loading an event

I made an event with a lot of time-consuming operations and that I need to be describing the operations in a RichTextBox, so I use RichTextBox.AppendText ("Something"), but what I wrote only appears when the method finalizes everything. I made a...
asked by 14.05.2017 / 23:05
1
answer

Async method returning a Liststring how to use?

I have a method called consulta_usuario_email , which is responsible for searching the registered users table, the emails of the users of a certain department: public async Task<List<string>> consulta_usuario_email(string de...
asked by 05.07.2017 / 17:22
1
answer

How to put € symbol in DataGridView

I have a DataGridView with numeric values and some of them represent monetary values, but the database comes just the number and wanted to put the currency symbol in front of the value. This is the code I use to load my DataGridView; public...
asked by 08.07.2017 / 13:02
1
answer

Load the combobox

When you save a data in the combo box, and in this combo box you have two options (gasoline, diesel, alcohol, natural gas) Selecting diesel and saved works normally. The problem is when I want to load the combo box save always the first va...
asked by 18.04.2017 / 17:23
2
answers

Import a list to another Form C #

I do not know how to import a list into another form , if anyone can help me. The code for the first form looks like this: Note that I want to transport ListaFornecedores to Form FrmNovoProduto . As I said, I do not...
asked by 17.11.2016 / 15:41
1
answer

Add hyperlink in MessageBox c #

Is it possible to customize MessageBox.Show("http://www.google.com/"); so that this link is a hyperlink and when I click open a browser? The only possibility really would be to create a new form?     
asked by 09.04.2017 / 21:43
1
answer

Click button to call different methods

I have a button that calls the btn_Salvar click event in my form. How do I make this event click call different methods according to who created the form the button is contained in? EDIT: Explaining better: I have the Form "frmPrinc...
asked by 17.06.2016 / 15:59
1
answer

How to exclude row from datagridview?

Populate datagridView like this: dgvProdutosErp.DataSource = produtos; // produtos é uma lista I try to remove it as follows: foreach (DataGridViewRow row in dgvProdutosErp.Rows) { dgvProdutosErp.Rows.RemoveAt(row.Index); }...
asked by 26.10.2016 / 14:10
1
answer

Where should I put ConnectionString in Windows Forms with EF?

I'm having the following error using Entity Framework:    Additional information: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFram...
asked by 26.08.2016 / 23:23