**Francesco Leo** *asked* **2025-02-16 10:00:39 UTC** Hi, I'm trying to pass parameters to a Wisej WinForms application. I'm using the same way I use in normal Apps, but I get an error, attached. I open the url with https://www.sicanet.it/?id=123 And this is the code of my Program.cs: static void Main(string[] args) { if (args.Length > 0) { MessageBox.Show(args[0]); } Application.Desktop = new MyDesktop(); Application.SetSessionTimeout(600); Principale oPrincipale = new Principale(); oPrincipale.ShowDialog(); } How can I solve the problem?
Activity
itg-assistant commentedon Jun 16, 2026
Frank (ITG) answered 2025-02-16 10:21:36 UTC
Hi Francesco,
there is no such thing as a Wisej WinForms application.
To query the startup parameters use this:
https://docs.wisej.com/api/wisej.web/general/application#querystring
Best regards
Frank
itg-assistant commentedon Jun 16, 2026
Francesco Leo answered 2025-02-17 09:32:34 UTC
Ok, now work fine, thanks.