Questions tagged as 'winforms'

1
answer

Leave selected specific item ComboBox C # WinForms Visual Studio 2017

I'm developing an application that contains a customer registry. In this register there is a ComboBox that lists the cities of the database. My question is: How do I leave ' setado ' the name of a specific city? For example, the fir...
asked by 04.06.2018 / 02:11
2
answers

How to read only one line of a file in C #

I know how to read the whole file but how can I read only one line EX: read line 3 only     
asked by 02.04.2018 / 03:32
1
answer

Instantiate method on instantiated Form

Hello, I have the following question, I instantiated a new form with the following code: Form frmDialog = new Form(); Well, I want to do the following, in the form where I instantiated this new Form, I can use the following code: protecte...
asked by 16.03.2018 / 16:18
1
answer

How to add one Form inside another?

I have two forms ( FormMenuPrincipal and FormFuncionarios ) in which when the% button of the Menu is clicked, I want to open the Officers form. I thought about adding a panel btnFuncionarios as follows: private void b...
asked by 10.04.2018 / 20:39
1
answer

How to manipulate different data in the combobox at runtime

I have a textfield field and a combobox next to it ... Follow the image I want to make, given the value in the textfield field, that by clicking on another combobox item , convert textfield strong> to the corresponding element...
asked by 23.02.2018 / 20:56
3
answers

Add Text In textbox in certain position C #

Hello, I'm developing a dental software which one of the functions is to select a tooth on a button and add the name of this tooth in a textbox. So far, no problem, but the point is that this textbox is about observations, and I would like the n...
asked by 02.11.2016 / 19:43
2
answers

Saving checkbox information to TXT files

I'm developing an O.S. software where I've broken down the main problems in several checkboxes. All data entered on the screen will be sent to a text file, which will then be viewed by the boss in Excel. My problem is that I'm not able to cap...
asked by 04.11.2016 / 13:04
1
answer

How to delete the line that automatically generates in a gridView windowns form

I have gridView that as soon as it is populated with data, it always generates one more line. How do I remove it? Obs. The grid columns are generated dynamically. if(objPed.ConsultarPedido(Metodos.empresa,txtNumPedido.Text)>0)...
asked by 01.12.2017 / 18:11
1
answer

textbox value for another textbo using Tabcontrol and Tabpages

I'm using a form with a TabControl , with three pages. In% with% I have a TabPage1 (seller), I need to take the value of this TextBox to another TextBox that is in TextBox . How can I do this between the TabContro...
asked by 31.10.2017 / 18:35
1
answer

How to sort words from an array without repeating them? [duplicate]

I'm doing a college project where I need to simulate the library, so I have an array with the name of 20 teams and I need to raffle 10 teams but not repeat any of them and present those teams in a ListBox , however I'm not getting it, could y...
asked by 20.11.2017 / 05:58