开发者

How to center a button (.NET Compact Framework)

I want to centre a button in .NET Compact Framework. I dont see any property like StartPosition in .NET CF Form object.

Can someone please sugge开发者_如何学Cst me how to centre button in .NET CF 3.5?


You mean you want to center the button in it's container along these lines?

myButton.Left = myButton.Parent.Left + (myButton.Width / 2);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜