Showing results 1 to 1 of 1

Thread: Sample How to implement a Windows form in the zenon WorkspaceAddIn

  1. #1
    Join Date
    28.07.2008
    Posts
    64

    Default Sample How to implement a Windows form in the zenon WorkspaceAddIn

    This samples shows how to use a window form in the zenon Workspace (WorkpaceAddIn)

    First of all you have to create a Windows form with a constructor with one parameter. With this constructor you can commit a reference of the zenon object which you want to use in the windows form and makes possible to work with zenon objects.

    public zenOn.IApplication m Zenon=null ;
    public void ZenonInstance ( zenOn.IApplication app )
    {
    m Zenon = app ;
    }



    public void Macro1 ( )
    {
    Form1 Wizard = new Form1 ( ) ;
    Wizard.ZenonInstance ( this.Application ) ;
    Wizard .ShowDialog ( ) ;
    }
    Last edited by tulon : 12th May 2010 at 10:00

Similar Threads

  1. Replies: 3
    Last Post: 27th October 2011, 09:58
  2. Replies: 0
    Last Post: 11th March 2010, 16:04
  3. Replies: 0
    Last Post: 11th March 2010, 15:59
  4. autostart of zenOn under Windows CE
    By sebastiank in forum zenon Operator
    Replies: 0
    Last Post: 8th October 2007, 12:26
  5. Windows CE 6.0 and zenOn
    By sebastiank in forum zenon Operator
    Replies: 0
    Last Post: 19th September 2007, 07:49

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •