Questions tagged as 'winforms'

2
answers

How to fill a datagrid in a form with fields in another form C #?

I'm doing a loyalty system, and wanted to use two forms for clients , form1 with datagridview and a button to sign up and the other form2 with the data fields to be filled , this form2 would be triggered by pressing the form1 button, w...
asked by 17.09.2014 / 22:18
1
answer

Delete a folder even though it is with files

What code should I use to delete a folder in which it contains files inside it? This code I used only deletes an empty folder. void ApagarPasta(string nameOf, bool subPastas){ Directory.Delete(nameOf, subPastas); // Deleta a pasta e s...
asked by 03.08.2014 / 20:22
1
answer

Create record pattern with C # UI repository

I created a repository with EF6 on my system, every record that I have access to the methods of my repository to commit the actions I need (Insert, Delete etc ...). The problem is that my system is very large and I need to gain agility when crea...
asked by 15.07.2014 / 18:07
2
answers

How to change the border color of a GroupBox

How to change the border color of a Group-box? Because I need to put a very clear background color ... there the edge of the Group-box I have almost do not appear because they are a very light gray too .... I needed to change to a darker c...
asked by 12.08.2014 / 19:07
1
answer

Method does not act as expected

When I check the following code, there is nothing in any of the ComboBoxes . For me, everything is normal, I do not see anything wrong, what can it be? public FormExemplo() { ExemploList = new List<string[]>; CmbB.Enabled =...
asked by 24.05.2014 / 03:36
2
answers

Failed to convert nvarchar value 'VINET' to int data type

I have this error: Falha ao converter o nvarchar valor 'VINET' para o tipo de dados int. Below my code: private void button1_Click(object sender, EventArgs e) { try { SqlConnection dataConn...
asked by 30.06.2014 / 00:58
1
answer

High volume data loading with NHibernate + Windows Forms

I use ORM NHibernate in a windows forms project and there is a forecast of working with a large volume of data across multiple tables, ranging from 1 to 15 thousand records on average. Although not as large a volume of data as some may say, this...
asked by 07.05.2014 / 17:26
2
answers

How to convert Sender to a Form?

In my program, I need the following routine to work: private void FuncaoTal() { frmSelecao.FormClosing += atualizarEvento; SplitContMenu.Panel2.Controls.Clear(); splitContMenu.Panel2.Controls.Add(frmSelecao); frmSelecao.Show(); } priva...
asked by 31.01.2014 / 14:52
1
answer

How to update form or button event automatically?

How do I automatically update a Private Sub _PAINEL_VENDAS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load and an event for example button ? Do I have to use a timer?     
asked by 05.02.2014 / 15:07
0
answers

X509Certificate2UI.SelectFromCollection is closing the application

On a given client, when accessing the X509Certificate2UI.SelectFromCollection function the application is closing without even going through the error handling. This function opens a Windows dialog box for the user to select a digital...
asked by 07.12.2018 / 12:05