Popup window at the corner of the screen

0
0

Hi, in my Windows.Form application I have a window that, when needed, appears in the lower right corner of the screen, with a message and all the parameters, time, color etc. (attached)
Is it possible to achieve something like this with Wisej? Mine doesn’t work, I tried to insert it but the class is not recognized.

Thank you

Attachment
  • You must to post comments
0
0

Hi Francesco, you can try to port the Tulep Notification Windows Forms project to Wisej following the guidelines on Migration.
https://docs.wisej.com/migration/winforms-to-wisej-1/winforms-to-wisej
Follow the guide for Old Project format (so basically change references from System.Windows.Forms to Wisej.Web) and change/adapt code for missing methods/properties).

Using this approach i have ported to Wisej some Windows Forms components (eg: the XQBEForm and the XQBEReport of Passero Framework)

 

  • Francesco Leo
    Hi Gabriele, I’ll try as soon as I have some time. Thank you.
  • You must to post comments
0
0

For a very simple popup that appears in the lower right corner of the screen and disappears after a few seconds, you could use an Alertbox.
AlertBox.Show("Your Text Here");
AlertBox Documentation:
https://docs.wisej.com/docs/controls/notifications/alertbox
https://docs.wisej.com/api/wisej.web/notifications/alertbox

In your case, you probably want to use the “Form” class. Change your window so that it derives from Form.
You’ll need to set the Location of the Form so that it appears where you want it. In this example, MyCustomWindow is a class derived from Form.
MyCustomWindow form = new MyCustomWindow();
form.Location = new System.Drawing.Point(500, 500);
var result = form.ShowDialog();

Form Documentation: https://docs.wisej.com/docs/controls/containers/form

Hope this helps!

-Julie

  • Francesco Leo
    Thanks for the tip, but it’s not the same. I don’t understand why this component (https://github.com/Tulpep/Notification-Popup-Window/tree/master), derived from System.Windows.Forms.Form, which I have been using for many years, does not work with Wisej. It doesn’t give any errors but it doesn’t display the window.
  • Julie (ITG)
    I’m not sure why either, but given that it is not a Wisej component, determining why it does not work is beyond the scope of this free support forum. If you want us to take a look at it, you would need to purchase a consulting package from https://wisej.com/services-packages/
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.