CF - Align text in a Label
Is there a way to align a text in 开发者_如何学Goa label to its absolute center (compact framework)? Not a topCenter but a center of the label.
I want to avoid putting a label into a panel (container)...
The underlying OS (Windows CE) doesn't support vertical centering of statics, which is why it's not supported in the CF. You'll have to eitehr manually center the label or just use DrawText on the "parent" and draw in the text you want without any underlying Label control at all.
精彩评论