This sample is located in \Samples\Wfc\SimpleOCXControl.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample shows how to build a simple control and to declare its properties and events so that they can be displayed and manipulated in the Properties window of the Windows Foundation Classes (WFC) Forms Designer.
The control includes a Simple Custom Property and a Property Editor. The control also hides the properties of com.ms.wfc.ui.Control that are not appropriate.
The control is exposed as a Microsoft® ActiveX® Control using the @com.register flag and is packaged as a DLL.
To compile the sample
Note You may need to add the control to the Visual Basic Toolbox to correctly register it.
Contains the Simple Control.
\Samples\Wfc\SimpleOCXControl\JavaTest.exe
Contains a sample form that demonstrates how to include the control as a WFC control on a WFC form.
\Samples\Wfc\SimpleOCXControl\VBTest
Contains a sample Visual Basic form that demonstrates how to include the control as an ActiveX Control on a Visual Basic Form.
This sample shows how to use: