C#控件:显示MessageBox后,单选按钮消失 [英] C# control: Radio button disappears after showing a MessageBox

查看:274
本文介绍了C#控件:显示MessageBox后,单选按钮消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我有一个C#用户控件。

在这个控件中,我有一个包含单选按钮和文本框的GroupBox 。



当用户在单选按钮之间切换时,会出现一个消息框,询问用户是否确定他的选择。



消息框的顶部覆盖最后一个单选按钮和最后一个文本框。

如果用户选择不应用单选按钮更改,则消息框为关闭,但最后一个单选按钮(消息框覆盖)消失了。 (消息框也覆盖的最后一个文本框没有消失)。



这是一种刷新问题,因为当我在这个地方移动鼠标按钮时最后一个单选按钮,它再次出现,一切都很好。 (如果我最小化并最大化我的应用程序等,它也会出现。)



我试图在最后一个单选按钮上运行方法Show()和Refresh()关闭消息框后,但它不起作用。



我还能做什么?



谢谢

Hello,

I have a C# user control.
In this control, I have a GroupBox that includes radio buttons and textboxes.

When the user switches between the radio buttons, a message box is raised to ask the user if he is sure in his selection.

The top of the messagebox is covering the last radio button and the last textbox.
In a case the user selects NOT to apply the radio button changes, the messagebox is getting closed, but the last radio button (that was covered by the messagebox) disappered. (The last textbox that was also covered by the messagebox is not getting disappered).

This is kind of refresh problem, because when I move the mouse button on the place of the last radio button, it appears again and everything is fine. (it appears again also if I minimize and maximize my application, etc).

I tried to run the methods Show() and Refresh() on the last radio button after closing of the messagebox, but it doesn''t work.

What else can I do?

Thanks

推荐答案



调用Refresh();消息框关闭后的方法。



问候

Jegan
Hi,
Call the "Refresh();" method after the message box closed.

Regards
Jegan


这篇关于C#控件:显示MessageBox后,单选按钮消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆