开发者

How to center a button (.NET Compact Framework)

开发者 https://www.devze.com 2023-04-07 20:36 出处:网络
I want to centre a button in .NET Compact Framework. I dont see any property like StartPosition in .NET CF Form object.

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

精彩评论

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

关注公众号