Skip to content

Launch a Wisej application with parameters #4718

Closed

Description

@itg-assistant

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

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    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

  2. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Francesco Leo answered 2025-02-17 09:32:34 UTC

    Ok, now work fine, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions