Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
Dharmendra-18 27-Feb-13 6:06am    
Are you using Dialoge Resultset..
user_code 28-Feb-13 5:36am    
Yes. Does it matter?
Dharmendra-18 1-Mar-13 0:41am    
why you could not handle the Dialogue Result set

1 solution

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

Regards
Jegan
 
Share this answer
 
Comments
user_code 28-Feb-13 2:10am    
I tried. Both for the Refresh() of the Radio Button, and also for the Refresh() of the Groupbox.
It doesn't help.
Jegan Thiyagesan 1-Mar-13 3:57am    
you need to refresh the Parent form!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900