Hour 23

1: Can you insert an ActiveX control into your control project, and if so, what method is used to perform this layer of communication between the two controls?
A1: Yes, you can. The method involved is COM Interop.
2: You used a PaintHandler delegate to paint your control. What is another method you could have used to draw your control?
A2: You can override the OnPaint method provided by the base class.
3: How would you allow a user to both select a property value from a list and also have the ability to manually type in a value within the Property Browser?
A3: Return False from the GetStandardValuesExclusive function.

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.