W
W
WasTabon2020-11-19 21:24:49
C++ / C#
WasTabon, 2020-11-19 21:24:49

How can you perform an action every frame, or when the Windows Forms window is resized?

For example, I want to make a notepad and all the time I should have the entire field filled with textbox, how can I make it so that the textbox size = window size all the time without clicking on the buttons?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
John_Nash, 2020-11-19
@John_Nash

subscribe to window resize event

C
cicatrix, 2020-11-19
@cicatrix

Set the Dock property to Fill or anchor the textbox with the Anchor property

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question