Questions tagged as 'winforms'

2
answers

Splash Screen in Windows Form C #

So far so good, but I did a splash screen and put it to run on the main form and it ran perfectly. After a while I always refresh the project with new functions and the splash main loads, but does not show the image. I have deleted and ev...
asked by 19.12.2014 / 13:55
2
answers

How can I create a DataGridView with Mongodb?

I want to display the DB data in a table, but so far I have been able to do it with a ListView . How can I do this but using a DataGridView ? using System; using System.Collections.Generic; using System.ComponentModel; using System...
asked by 05.12.2014 / 04:56
1
answer

Problem when exporting data from datagridview c # to excel sheet

Hello, I have the following code, in it I'm getting the data from the datagridview and exporting to an .xls, I'm passing everything as String, the texts, names, which are Strings, are normal, but there are numbers with until 44 digits that I p...
asked by 13.02.2015 / 12:17
1
answer

Popular datagridview in C # with class with inheritance

Good people, I have the following situation: public class TiposMateriais { public int tipoCodigo { get; set; } public string tipoDescricao { get; set; } } public class Materiais { public int matCodigo { get; set; } public...
asked by 13.01.2015 / 01:01
1
answer

Thread hanging

My system has a method that puts each triggered event into a thread , save, edit, search, everything goes to a thread . backgroundWorker.DoWork += acaoProcessamento; backgroundWorker.RunWorkerCompleted += (s, a) => { this.oc...
asked by 29.09.2014 / 21:54
1
answer

Change column color with values above the limit

I am making a report for winforms using REPORT viewer, in this report I added a column chart. What I need to do is that before loading the report the user can choose what value is good for him, and all the columns that were above that value chan...
asked by 08.10.2014 / 15:05
1
answer

How do I know if a function was called by another form?

How do I tell if a function has been called by another form? For example: On my form 1, I have a method that calls another form: private void btnFormulario2_Click(object sender, EventArgs e) { frmFormulario2 frm2 = new frmFormulario...
asked by 17.11.2014 / 14:45
1
answer

Query Mysql in Visual Studio does not return all data

I have a problem in Visual Studio, where in my database access class, I have a query that does a query in my Mysql database, and returns only the last result. So, how much do I test this same query directly in the Mysql database, using tools lik...
asked by 30.08.2014 / 15:44
1
answer

Parameters of SqlCommand and ExecuteReader [closed]

I can not get values from the database and direct a form according to what "profile" is in the users table, if I take the% login , however, I need to verify the user's profile, my code looks like this: using System; using System.Collection...
asked by 23.12.2014 / 01:11
1
answer

Parameter problems in SqlCommand

I am developing a service registry, the first screen is the one of login and I need to take the position of the user that logged in and indicate a form for it, my code is like this: using System; using System.Collections.Generic; using System....
asked by 20.12.2014 / 21:19