hi,
im using desktop alert along with threading. Means calling one method by threading and in that method ultraDesktopAlert1.Show() is written.
Now the pop up window is generated but it is very small and not able to come out above taskbar. also not able to see any text on it. If we move cursor above it then wait cursor is shown and not able to close it.
thanks in advance
My first suspicion would be that you are displaying the alert on a background thread, which is not supported. When displaying a desktop alert from a different thread, the call has to be properly marshalled across the thread boundaries using the form's BeginInvoke method, so that the alert is displayed on the main UI thread.
I apologize for bringing up this old thread, but I have a similar problem. and I'm hoping someone can offer a suggestion to help.
In my case, my form subscribes to an event from another object (this object runs on its own thread), when i receive the event i would like display some data from the event args using the desktop alert, However, like the previous poster, the alert behaviour is the same.
Can you please suggest how I can return to the forms main thread from the event call and display the desktop alert.
Thank you for any help you can offer.
I guess my post was a little premature, I have found my solution.
In the method that receives the event i will use
this.Invoke((MethodInvoker)delegate { DisplayDesktopAlert(caption, message); });
where the DisplayDesktopAlert method looks like,
private void DisplayDesktopAlert(string caption, string, message)
{
this.DesktopAlert.Show(caption, message);
}
Thanks,
Thanks Chris !
that will do my cause... cheers