Resize the true control of the WindowsControlLibrary

BenTam 1,781 Reputation points
2022-11-10T04:51:33.03+00:00

Hi All,

I create a textbox in a WindowsControlLibrary project. Then I put this control into a form. However, when I resize the textbox, I can only resize the canvas rather than the textbox. How can I resize the textbox?

258910-textbox.gif

Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-11-10T06:14:18.053+00:00

    Hi @BenTam ,Welcome to Q&A.

    From your description, your textbox and canvas should be a whole user control.

    You need to set the anchor or dock property of the textbox in the user control.

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.