I
I
Igor Kaspersky2016-01-31 23:15:30
Visual Basic
Igor Kaspersky, 2016-01-31 23:15:30

How in Visual Basic select all textbox etc.?

How to highlight all textbox in windows form? And here, for example, you type text into the textbox after pressing enter or moving to another field, a checkmark is displayed, how to write it in one line, otherwise you don’t want to write like this:
textbox1 = picturebox1.visible = true
textbox2 = picturebox2.visible = true
.. .textbox
(i++) = picturebox(i++).visible = true

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VZVZ, 2016-01-31
@HHabar

Example:

var textBox = this.Controls["textBox1"] as TextBox; // где textBox1 - это свойство Name текстбокса
textBox.Hide();

It seems to be enough to understand the logic.
The textbox in this case should lie directly on the form. If in the panel, then you need panel1.Controls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question