Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP to .NET migration - form by form?
Message
 
À
08/01/2007 15:03:19
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01181837
Message ID:
01183804
Vues:
18
It looks like a pretty good tool. I cant easily read the documentation and have to view the source and past and edit the html to get a readable copy of the CHM (most topics in the CHM are in a unscrollable edit region).

Anyway - following their example in building a .NET form on the fly does work pretty good, but looses the zorder when interacting with the VFP application. In other words, clicking on the VFP menu puts the .NET form behind VFP. I was hoping the .NET form would be hosted in the VFP MDI and even honor its boundaries. Since the trial only give me 30 minutes of 'play' time I can't spend a lot of time exploring.


>Hi:
>
>There is two options:
>
>1. Make the form´s class public and use
>SetCLRClassLibrary("the path/to your/assembly.dll",.T.)
>oForm = CLRCreateObject("yournamespace::YourClassName").
>oForm.Show()
>
>
>2. Make the form look like a Control (no ControlBox and not caption) and put it in a VFP Form using netbasecontrol (in netbasecontrols.vcx). Remember to se cControlClass to "yournamespace::YourClassName".
>Allways is needed to call:
>SetCLRClassLibrary("the path/to your/assembly.dll",.T.)
>
>I hope this help you
>
>Martin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform