Questions tagged as 'winforms'

1
answer

How to get the text of the line where the cursor is positioned?

I have a textbox, and I need to get the contents of the line where the cursor is positioned. For example, I'm in the third line of the textbox (cursor positioned on it), I'd like to get the contents of that line. Thanks in advance ...     
asked by 18.07.2016 / 02:05
3
answers

Get the name textview in loop repeat

How can I get the textbox inside a For: I have a For that runs 20 times and I have 20 textboxes on my screen, I would like to know how to get all textboxes containing name get the text and play in an array.     
asked by 05.02.2016 / 19:11
1
answer

How to add more than one string in a List

I have a customer registration system and am trying to add products to registered customers. For the list of the cadastre I have the following: public class Cliente { public string Nome { get; set; } public string CPF { get; set; }...
asked by 03.11.2014 / 21:59
2
answers

Updating object value of a Form by a thread

I need 2 labels in my form to be updated every 1 second, so I made a thread in load of Form : Thread threadUpdate = new Thread(new ThreadStart(UpdateState)); threadUpdate.Start(); And my UpdateState method is found as fo...
asked by 15.07.2014 / 17:04
1
answer

How to insert values inside a key using List and JSON

I'm trying to do something that gives me output like this: [ { "Nome": "João", "Comprou": [ "Carro": "Sedan", "Preco": "12000", "Moto": "Honda", "Preco": "8000"...
asked by 30.10.2014 / 21:04
2
answers

Move picture (PictureBox) in form

How to move an image into a form windows form. I used the following code: private void button1_Click(object sender, EventArgs e) { int tamanhoFundo = picFundo.Width; int x = myPic.Location.X; int y = myPic.Location.Y; while...
asked by 05.01.2015 / 19:24
1
answer

Turn labels from a CheckBoxList into strings

I have checkboxlist with some items and their names are the directories so I can save the file. I would like to know how I get the name of each label selected from checkboxlist and turn it into a string . I would like to kn...
asked by 23.04.2014 / 08:55
1
answer

Does the 'WebBrowser' use a native windows browser as the basis?

I'm seeing that you can use a WebBrowser in the C # Form but wanted to know if it is like iFrame that uses the browser itself to create this navigation window. My question is whether he uses Edge or something like that to create...
asked by 14.11.2018 / 16:32
2
answers

How to use async / await in methods that return void?

I have a problem with my application, where due to the large volume of processing, my Form hangs. During my research I discovered that a async method solves this, but the functions executed on my "execute" button return void, so I...
asked by 09.08.2018 / 18:21
1
answer

How to pass a parameter to DataPrpetyName (in DataGrid) C #

How can I pass a parameter there? For example changing the id_inss to id_example? I found no way to do it.     
asked by 16.08.2018 / 14:52