开发者

Show Windows Mobile User Control

开发者 https://www.devze.com 2022-12-12 23:05 出处:网络
I have a simple Windows Form application that is using the .net 3.5 compact framework. I have a UserContro开发者_StackOverflow中文版l that I have created to show a Message to the user(I don\'t want

I have a simple Windows Form application that is using the .net 3.5 compact framework.

I have a UserContro开发者_StackOverflow中文版l that I have created to show a Message to the user(I don't want to use the MessageBox as the close icon is too small)

How do I get my UserControl to show on top of all of the other Grids and controls? The UserControl is declared in a Base form that the main forms inherit from and it is never visible.


Does userctl.BringToFront() work? And of course you should set Visible=rue


Did you try the Control.BringToFront method?

0

精彩评论

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