开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜