I have a user control in which I need to center a single line of text vertically. So far I have a textbox in the panel. The dock property is set to fill. However, the single line of text always displays at the top. How do I get it to be centered vertically?
When it is not set to multi-line, the text box only takes up one line of space. When it is set to multi-line, the text is displayed at the top of the box.
Edit:
As it turns out, it might be better to use a label. How would I get a label's text to be centered vertically and horizontally in a panel. When I set the Dock property to Fill, it doesn't change it size past what is needed to display the current text.