Click here to Skip to main content
11,644,731 members (63,332 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# User-controls MessageBox , +
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 26-Feb-13 23:35pm
Comments
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
good
Please Sign up or sign in to vote.

Solution 1

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

Regards
Jegan
  Permalink  
Comments
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 680
1 jyo.net 494
2 Sergey Alexandrovich Kryukov 464
3 Afzaal Ahmad Zeeshan 404
4 CPallini 386
0 OriginalGriff 1,020
1 Sergey Alexandrovich Kryukov 673
2 DamithSL 656
3 Afzaal Ahmad Zeeshan 652
4 CPallini 555


Advertise | Privacy | Mobile
Web04 | 2.8.150731.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