开发者

How do you create a textbox in visual Studio with c#?

开发者 https://www.devze.com 2023-02-02 05:56 出处:网络
I feel kind of silly asking this question as it seems really simple, but how do I create a text box that I can type in instructions and stuff like开发者_StackOverflow that. I don\'t need the user to b

I feel kind of silly asking this question as it seems really simple, but how do I create a text box that I can type in instructions and stuff like开发者_StackOverflow that. I don't need the user to be able to change it, it is just to give instructions. I tried the label, but it only allows one line. I need something that can allow about a paragraph or so. Similar to the box in an installer that describes what the program does. What did I miss?


You can use a label but set its AutoSize property to false. This allows you to size the label as you wish and it will automatically wrap the text to fit.

You can also anchor the label to the parent form to have it automatically resize and reflow the text if the user resizes the parent form.


You want a text box, but set its Read Only property to TRUE, and maybe Enabled to FALSE

0

精彩评论

暂无评论...
验证码 换一张
取 消