Welcome! Log In Create A New Profile

Advanced

Import a WinDev window in .NET project

Posted by Luigi Trevisant.pcs.crosspost 
Luigi Trevisant.pcs.crosspost
Import a WinDev window in .NET project
September 26, 2008 04:52PM
Hi everybody,
is it possible to import a window from a WinDev project into a .Net project developed with Visual Studio?

Thanks in advance.

Regards,
Luigi

Message forwarded from pcsoft.us.windev
BLS
Re: Import a WinDev window in .NET project
October 09, 2008 05:54PM
Yep smiling smiley You can import and use a WINDEV window in f.i. your C sharp app.

// C#  import WINDEV stuff
using WL;

//.... Menu Item click
private void OnWDClick(object sender, EventArgs e)
        {
            WDWindow w = new WDWindow();
            w.openWindow();
        }

The Windev class WDWindow:
// method openWindow
PROCEDURE PUBLIC openWindow()
OpenChild(Windev_Window)

Please note :
1)
Check the Window/Detail properties :
Include compiled code [x]
2)
Add your assembly and the WD110NET2.DLL to your project reference !
(I am still using WD11, WD12 this file is probabely WD120NET2.DLL)
3)
copy all required WD framework DLLs. into your bin/release as well as bin/debug directory.

I am using Visual c# Express 2008 (it's free)

I'll make some further tests (parameter passing etcwinking smiley and let you know what I've learned;
In case of interest.

Bjoern






BLS
Re: Import a WinDev window in .NET project
October 13, 2008 04:33AM
Yes, everything is working fine except WINDEV MDI child windows.

I guess (have to debug a lot to be sure) that our WINDEV MDI child window. simply has NO information about it's parent windows workspace . Makes sense n'est pas ?

A solution could be to pass position parameters from our
DOT NET MDI Parent window to our WINDEV MDI Child window.

// C #
using WL;

 private void OnWDClick(object sender, EventArgs e)
        {
          
            string win_name = "Windev_Fenster";
            string win_alias = "Windev MDI Child";

            WDWindow w = new WDWindow();  // a WINDEV class

            w.openMDIChild(win_name, win_alias,10,10,500,300); // x,y,w,h
        }

Of course : The positions x,y are relative smiling smiley

So in case that you have a smart solution regarding : How to to embed a WINDEV MDI client window into an DOT NET Parent MDI Window , give me a pointer please!
Bjoern




Edited 1 time(s). Last edit at 10/13/2008 04:39AM by BLS.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: