I have a message that appears when the user cannot be downloaded (in this case, because he does not have a warehouse) during the download, there is a splash screen that shows that the data is being downloaded. I tried setting TopMost to true, but yes, spalshscreen is not a parent, so it does not work, so I tried to set TopLevel to true, but that did not help.
So I tried:
MessageBox.Show(Splashscreen.LoadingScreen.ActiveForm, e.Message, "No warehouses", MessageBoxButtons.OK, MessageBoxIcon.Error);
but this is a cross-stream, so I get: InvalidOperationException So is there any other way to set the top message box?
source
share