Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set VFP Form Property from VB6 OCX
Message
From
31/07/2002 15:41:35
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00684622
Message ID:
00684688
Views:
27
First, the better solution is to add this property (HasChanged) to your control - for VFP code is the same if this property is on your control or on the form, but for your code this will be easy and clear. There is way to do this property on the form, but your ActiveX will be usable only from VFP - it will not work in VB and also the way, which I will show you, will not work in other languages like VC++.

Anyway, the way you can do this: use ParentControls collection. VFP support this collection (but VC++ does not support it). In this collection when your control is on VFP form you can access every control on the form (and also columns in grids etc.). Do loop through this collection until you find the form and change its property.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform