Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing VFP 5.0 Databases from .NET?
Message
From
27/02/2004 15:54:52
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00881461
Message ID:
00881653
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform