Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing VFP 5.0 Databases from .NET?
Message
De
27/02/2004 15:54:52
 
 
À
27/02/2004 15:15:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00881461
Message ID:
00881653
Vues:
36
Darrell,

In a nutshell, here's what you need to do...

1) I create a new project, as a class.

2) In the class, I programmatically subclass all the Winform controls. Any special properties or method code goes in here. Here's a simple example...


Namespace MyCompany.WinUI.MyClasses
_
Public Class MyGrid
Inherits System.Windows.Forms.DataGrid
' put whatever code you need here

End Class 'MyGrid
_

Public Class MyLabel
Inherits System.Windows.Forms.Label
End Class 'MyLabel
_

Public Class MyTextBox
Inherits System.Windows.Forms.TextBox
End Class 'MyTextBox

End Namespace 'MyCompany.WinUI.MyClasses

3) I build the project as a DLL

4) I go to the toolbox, go to components, and right click to add/customize the toolbox. I navigate to the DLL that I just built, and I select it.

Any controls in the class that was created in step 2 will appear in the
toolbox, and I can then drop them on any form that I create.

Not quite the same as VFP, but it should work.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform