An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @BenTam-3003 , Welcome to Microsoft Q&A,
UserControl will not change because of this.
You have several ways to choose.
- Manually adjust the size in the incident
- The simpler is to modify the Dock of TextBox at the design interface of UserControl as Fill. If you do n’t like TextBox and Button, you can choose to use a tablelayoutpanel to wrap the two controls and set their dock. If you want to not change, you can set it alone.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.