Questions tagged as 'winforms'

3
answers

Confirmation of form closure

I'm trying to create a confirmation for when the user tries to close a form with a button, or by x button, Alt
asked by 03.03.2014 / 17:07
2
answers

Communicating a Windows Service Project with a Windows Form Project

I just developed a Windows Service project (this will stay running to check for system updates, via ClickOnce). I need this Windows Service to communicate with a Form. I know that it is not possible to create a Form within a Service. What is the...
asked by 01.04.2015 / 20:18
1
answer

Show database image for each usercontrol

UserControl1 private string lastName; private string nnovo; public string LastName { get { return lastName; } set { lastName = value; label2.Text = value; } } public string Nn...
asked by 19.07.2014 / 00:47
1
answer

How to invert control list of Control.ControlCollection?

I am inserting in a Panel several Labels, as I am inserting, the first Label becomes last in the Panel. But I wanted to reverse this process. I wanted the first Label that was inserted, to be first in the Panel, and not last. private void Form...
asked by 19.08.2018 / 19:23
2
answers

Change tab of the TabControl

I'm creating a WindowsForm form and I'm using a TabControl and would like to create an event that would change the tab being displayed. I was able to change the content displayed with this.tabForm.TabPages["nomeTab"].Show(); or tabP...
asked by 17.11.2018 / 18:26
1
answer

DataGridView displaying incomplete id

The grid displays only the first character of the "ID" For example: if the ID is 16 it displays 1; If it is 20 it displays 2; But from 1 to 9 displays correctly ... Codethatselectsdata...privatevoidlixeiraDialog_Load(objectsender,Event...
asked by 30.08.2018 / 22:10
3
answers

Protecting the connection string in a .NET Winforms application?

I have a .NET Windows Forms application that connects to a SQL Server server directly, without the use of an intermediate layer like a WebService > or WebAPI , by SqlConnection . This application is installed on the client's compute...
asked by 07.02.2014 / 18:47
2
answers

Add a checkbox column in the datagridview

How to add a CheckBox type column in DataGridView? I need to do this for the user to select the row of the DataGridView with the CheckBox and then click the Save button. private void btnRestricao_Click_2(object sender, EventArgs e)...
asked by 13.02.2018 / 16:46
1
answer

How to change the color of several textbox by looking at only one condition

I'm creating an application in VS2015 WindowsFormAplication where I need to change the colors of the textbox when the result is greater than, equal to or less than zero (0). I'm working as follows: if (Convert.ToDecimal(tbEntrDiferen...
asked by 06.09.2017 / 18:41
1
answer

How to detect network instability with C #

I have a WinForms system where the folders that this system generates and uses is on a server, but there are some routines of this system that are creating multiple PDF's on the server, and when there is any instability in the network it does no...
asked by 29.03.2017 / 14:54