Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM object and Modal form
Message
 
À
29/11/2010 13:34:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01490949
Message ID:
01491005
Vues:
67
I don't think you can create Windows global modal forms in FoxPro. You can create modal forms and they are modal to your EXE (if you're using EXE servers - DLL servers don't support Modal dialogs at all) but that won't apply back into the .NET host application.

What I've done is to build forms that can float AlwaysOnTop so they sit ontop of other content which provides at least an illusion of modalness.


+++ Rick ---

>I have created a VFP COM object exe that is instantiated in .NET and in one of the COM methods I call in .NET instantiates a VFP modal form. Everything works great except the form is not modal and I cannot figure out why. Any and all help is greatly appreciated.
>
>Here is the code in the COM object method:
>
>Public oForm
>oForm = CreateObject("class.form")
>_Screen.Visible = .F.
>oForm.Init(parameter1,parameter2,parameter3,parameter4)
>
>Code form the Form.Init():
>This.Visible = .f.
>This.Show(1)
>
>Thanks,
>Ken
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform