Questions tagged as 'winforms'

1
answer

C # - Add MouseHover to each Button in a FlowLayout

How do I add a MouseHover event to every existing button in a FlowLayoutPanel? I want the mouse pointer to change to "Hand" when the mouse pointer is flipped on each button in this Panel and the background color of this button is a lighter bl...
asked by 28.05.2018 / 11:09
1
answer

C # BD .mdf connection string

Good evening guys, I have a .mdf database in a Windows Forms and I want to make the connection string it, can anyone help me? My version of Visual Studio is 2015 and the file is in: C: Documents \ Visual Studio 2017 \ Projects \ Projects \ Final...
asked by 11.05.2018 / 04:49
1
answer

How do I make console output appear in a textArea in WindowsForms?

I would like to know a way in which the output of my project will appear in a textArea in WindowsForms. I need this because my system is a binary number converter, and I want you to print on the screen the calculation step by step. If there is a...
asked by 12.06.2018 / 05:23
1
answer

How to center text in a MessageBox?

I currently have this code: MessageBox.Show("Verificação da password incorreta \n Insira novamente"); And output looks like this: Verificação da password incorreta Insira novamente How do I make the output centered on the%     
asked by 02.04.2018 / 04:17
1
answer

Form Visual Studio Covering the Windows Taskbar or Behind the Taskbar

I have an application that uses the property FormBorderStyle = none, but this is happening in windows 10 my statusbar (statusbar) that is at the bottom is behind the taskbar and windows 7 ends up covering, what can I do to adjust to the correct...
asked by 30.05.2018 / 05:27
1
answer

Find out which service is being used on tcp port C #

I created a Scan Port in C # (winforms), which is checking a range of ports, previously set, I can verify that the port is open, but my problem is: I know the port is open, but I do not know what kind of service is running on that port, is there...
asked by 13.03.2018 / 22:02
1
answer

Return selected object in datagridview

I have the following parameterization of my datagridview: List<ModelAluno> alunos; ModelAluno aluno = new ModelAluno(); public PesquisaAluno(List<ModelAluno> alunos) { InitializeComponent(); this.al...
asked by 25.03.2018 / 16:40
1
answer

Color word "up" a limiter

I need to color in the RichTextBox filled with several lines, a text before a limiter, Note for example the highlights: 1- not to paint because there is no limit 2 Paint because it has a limit : do not paint 3- do not paint because the...
asked by 10.01.2018 / 14:32
3
answers

Load grid information into textbox in a form that is already open c # windows form

Hello, I'm trying to do something that looks simple but I'm not getting it, I want to click a button to add the data from a grid go to another form that is already open. The problem is that I am only able to load a new form. This is not what I w...
asked by 29.10.2017 / 18:40
3
answers

Removing items from a ComboBox

I have a Status that looks for 13 statuses of a table: cboStatus.DisplayMember = "nome"; cboStatus.ValueMember = "codigo"; cboStatus.DataSource = CartoesVTBLL.Status(); cboStatus.SelectedValue = ""; In this table I have the Constraint f...
asked by 16.08.2017 / 15:38