Click here to Skip to main content
13,258,479 members (49,285 online)
Rate this:
Please Sign up or sign in to vote.

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?

Posted 27-Feb-13 0:35am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100