Questions tagged as 'winforms'

1
answer

Right-click Popup

I'm trying to make a popup by right-clicking inside a GridView . I am using the event MouseDown and the event MouseUp to make popupControlContainer appear and disappear. But how would you make it appear where the...
asked by 06.09.2016 / 16:06
1
answer

How do I retrieve data entered in GridView and then save it to the database?

On a certain sign-in screen, I have a GridView with some blank lines, so the user would have to enter the information on those lines, and then when clicking the save button, make the INSERT in the bank. p> How would you do when t...
asked by 31.08.2016 / 22:06
1
answer

How to create a PrivateFontCollection

I have some fonts that are not standard Windows, so I'm creating a PrivateFontCollection but I'm having trouble. These sources are used by the whole program, so I thought about creating a Classe Static with a get method,...
asked by 25.10.2016 / 18:42
1
answer

Format number in reportviewer?

I'm trying to format a number in ReportViewer and I'm not getting it, so I'm trying to use the Format function of TextBox in ReportViewer . The number is a code and I'm trying to fill it with 3 leading zeros. I'm tryin...
asked by 24.09.2016 / 20:48
1
answer

Best method for finding values in a DataTable

In a unit of measure register, I have to check if the unit the user wants to register, if it already exists, then since I have a DataGrid populated by a DataTable , I thought of going through DataTable and check if it already...
asked by 18.08.2016 / 04:53
1
answer

BackgroundWorker or Async

I need to develop a C # program where I will have slow processes. I have little experience with WinForms, I have more experience with WEB development. With the following question, does the BackgroudWorker component do the same thing as cal...
asked by 27.07.2016 / 13:43
2
answers

How to leave the selected line font in bold in DataGridView?

In the DataGridView of Windows Forms it is possible to change the font color and background color of the selected row easily using the DataGridView.DefaultCellStyle.SelectionBackColor DataGridView.DefaultCellStyle.SelectionForeColor But wha...
asked by 12.07.2016 / 19:13
1
answer

Cmd builder similar to visual studios

Hello everyone, I would like to know how I can do that when I click on a button my program compile cs files and more to make an .exe and run like that of the visual studios if someone on how I can do this or know tutorials I would appreciate it i...
asked by 03.08.2016 / 19:15
1
answer

Change MonthCalendar Culture

Is it possible to change the date format of the MonthCalendar object of a WinForms application? It happens that the culture selected on a client's station is Polish and this is causing an error in handling application dates. I tried...
asked by 16.06.2016 / 23:23
2
answers

How to take the zeros out of time?

I'm using a Label to receive the time of a video. The time I get from the video is double that comes in milliseconds, for example: 1555 = 1,555 sec. When I convert to TimeSpan the Label appears as follows: The code I'm using...
asked by 17.06.2016 / 03:35