Close button not working

2 Answers 27 Views
MessageBox
Jure
Top achievements
Rank 2
Iron
Iron
Jure asked on 14 Oct 2021, 11:26 AM | edited on 14 Oct 2021, 11:35 AM

Ok, this one's just weird. The Close (X) button on MessageBox's  TitleBar is not working. I click on it and nothing happens.

ds = Telerik.WinControls.RadMessageBox.Show(Me, "Are you sure?", "Clear form", MessageBoxButtons.YesNo, RadMessageIcon.Question, MessageBoxDefaultButton.Button1)

Help.

Edit: interestingly, it's the same with regular (native) MessageBox. As if the button is disabled. But why even show it then?

2 Answers, 1 is accepted

Sort by
0
Accepted
Jure
Top achievements
Rank 2
Iron
Iron
answered on 14 Oct 2021, 11:37 AM

https://stackoverflow.com/questions/1546082/yesno-messagebox-not-closing-when-x-button-clicked

"The Close button (in MsgBox's title bar): Since the MsgBox window is a built-in feature of the operating system, its X button is enabled only when certain buttons are present. If there is only an OK button, clicking the X button is the same as pressing OK. Otherwise, the X button is disabled unless there is a Cancel button, in which case clicking the X is the same as pressing Cancel."

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Oct 2021, 12:54 PM

Hello, Jure,

I am glad that the problem you were facing is now resolved. It seems that you have found a suitable StackOverflow thread that navigated to the right direction.

If you need any further assistance with RadMessageBox please don't hesitate to contact the community. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
MessageBox
Asked by
Jure
Top achievements
Rank 2
Iron
Iron
Answers by
Jure
Top achievements
Rank 2
Iron
Iron
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or