Click here to Skip to main content
11,706,007 members (58,048 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# User-controls MessageBox , +

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 26-Feb-13 23:35pm
Dharmendra-18 at 27-Feb-13 6:06am
Are you using Dialoge Resultset..
user_code at 28-Feb-13 5:36am
Yes. Does it matter?
Dharmendra-18 at 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 at 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 at 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
0 OriginalGriff 196
1 Sergey Alexandrovich Kryukov 151
2 ppolymorphe 61
3 Inimicos 60
4 ProgramFOX 50
0 OriginalGriff 9,050
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,636

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2015
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