May 2010
Intermediate to advanced
1272 pages
61h 18m
English
When you have an instance of the ActiveX control, or of a type library, you can access its members like any other .NET object, thus invoking methods, assigning properties, or handling events. For example the following code assigns the URL property of the media player with a media file to start playing:

You can also handle events if available, as demonstrated by the following code snippet:

In this particular case the MediaError event is raised when an error occurs in playing the media file. At a more general level, notice ...
Read now
Unlock full access