This is a migrated thread and some comments may be shown as answers.

RadMessageBox not centered with user control

3 Answers 151 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
JulioR
Top achievements
Rank 1
JulioR asked on 29 May 2009, 08:27 PM
Hi,

I'm testing the RadMessageBox  and each time I'm calling the show method, the message is appering in the upper left corner of the screen. Reading the help it seems to be centered only for winforms, but is saying nothing about using it in a user control dll development.

Do you have any idea about how can I solve this problem?

Thanks & regards

Julio

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 01 Jun 2009, 06:49 AM
Hello JulioR,

Thank you for writing. Please explain what do you mean by UserControl dll development? It does not matter from where you are calling the message box it always centers itself to the parent form. Also, if possible, please send a small sample application which demonstrates the wrong behavior or list the steps to reproduce it. I am looking forward to your reply.

Sincerely yours,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JulioR
Top achievements
Rank 1
answered on 01 Jun 2009, 07:59 AM
Hi Victor,

I found the problem trying to show radmessagebox while executing a second thread process. As you probably know better than me, this is not a good practise due to problems in programm flow. Now when I´m passing all my outputs to the main thread, all messages are centered again and they work great.

I´m developing a custom user control, which in a certain operation is launching a second thread and executing a couple of sentences in another class. If you include on that code (the second thread code being executed from another class) any radMessageBox, these will not appear in the center.

Thanks and regards,

Julio
0
Victor
Telerik team
answered on 01 Jun 2009, 09:29 AM
Hello Julio,

It is great that you managed to resolve the issue. Please write back if you need further assistance.

Sincerely yours,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
MessageBox
Asked by
JulioR
Top achievements
Rank 1
Answers by
Victor
Telerik team
JulioR
Top achievements
Rank 1
Share this question
or