T
T
tushevmikhail2020-07-06 19:19:01
C++ / C#
tushevmikhail, 2020-07-06 19:19:01

How to dynamically change the location of an ED from a form to a panel?

I have a form, there is a textbox on the form, and with some tricks (during debugging), you can move this textbox to panel. What is the code for this move?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2020-07-06
@tushevmikhail

panel1.Controls.Add(textBox1)
this.Controls.Remove(textBox1)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question