Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 OriginalGriff 478
2 Manas Bhardwaj 349
3 Tadit Dash 285
4 Damith Weerasinghe 260
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 5,856
2 Peter Leow 4,405
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid