Is possible show a input dialog box in smart client map view?

Hi, I am new in Milestone plugin development.

I need to show a popup in smart client map after the user click some buttons in context menu, the popup must content a text box and a couple of button. I need it to request an activation code to the user to perform some actions.

Is possible to show a small size window with user control page over the map?

I tryed to use this code:

ClientControl.Instance.CallOnUiThread(() =>
{
    MessageBox.Show("You have clicked Ok Button");
});

but I receive this error:

“Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application”

Thank you.

No, it is not possible to show it. Maps functionality is handled server-side (Event Server) and furthermore when handled server-side the server does not have a handle to identify which Smart Client it comes from. This is a consequence on the design of maps and no workaround is possible.