Questions tagged as 'winforms'

2
answers

How to check if there are async processes running

Does anyone know of any way to check if a Async process is running? For example, I would like to do a check when the user closes the system, and do not close until all Async processes are complete. async public void EvokeMetod...
asked by 09.08.2017 / 20:04
2
answers

Windows form c # identify which button of the BindingNavigator was clicked

How to identify which option (Add new, Delete and etc) was chosen in a BindingNavigator and which method to use to capture the click.     
asked by 16.12.2014 / 01:26
1
answer

Click event does not work in custom control

I created a button (UserControl), so far ok, but when I push a Click event on it, it does not work, I already tried with the MouseDown event, it also did not work. I do not think it's this, but this button has a Label that fills al...
asked by 21.10.2017 / 21:17
1
answer

Number of rows in DataGridView

I have a DataGridView and I need it to show me in a textbox the total number of rows I have in DataGridView. How can I do this. Below is my code private void ListaGrid() { string strSQL = @"SELECT CO...
asked by 10.05.2017 / 18:20
2
answers

Class with method to change a parameter

I have a User class with private attributes like Nome , Endereco and Telefone . This class has a constructor method that receives parameters like nome , endereco and telefone . I'd like to use a construct...
asked by 28.02.2017 / 03:08
2
answers

How to hide and unhide taskbar in C #?

I want my application to have a button that hides and reexits the Windows taskbar in C # to block user access to it. Any suggestions?     
asked by 19.01.2017 / 14:32
2
answers

playsound function

I am aa program a game for school work in C ++, and I have a game that during its execution starts a song, then when I click on the space key to fire the music stops and you only hear the gun shot. / p> I wanted to be able to play both the bac...
asked by 29.10.2016 / 16:51
1
answer

How to solve Object Reference Not Set To An Instance Of An Object

I have a serious problem. I have a populated GridView with data from a BD MySql working perfectly. I also have a button to turn it into a table to be inserted into a PDF using iTextSharp which also works perfectly,
asked by 24.05.2017 / 03:09
1
answer

How to disable editing and block the addition of GridView rows

I have GridView that the user enters with some information and saves, I would like after saving click. put all grid in ReadOnly mode and would like to block to insert or delete lines. I'm using the'GridControl 'from DevExpress 1...
asked by 05.09.2016 / 00:29
1
answer

How to select more than one txt file with C #

I am writing a C # application that needs to receive more than 1 text file and display the Filename of them in an individual MessageBox for each. My question is in this file import, I was using OpenFileDialog to select th...
asked by 16.03.2016 / 18:52