July 2003
Intermediate to advanced
736 pages
16h 35m
English
The most common operation with interfaces that you will want to perform is implementation. You indicate that you want to implement an interface similar to the way you did so in VB6. The way to implement the members of an interface has changed. Let's take a look at implementing the IDrawable interface (see Listing 2.6). A synopsis follows the listing.
1: Imports System.Drawing 2: 3: Public Class Form1 4: Inherits System.Windows.Forms.Form 5: 6: [ Windows Form Designer generated code ] 7: 8: Private Sub Draw(ByVal DrawableObject As IDrawable) 9: DrawableObject.Draw(CreateGraphics) 10: End Sub 11: 12: Private Sub Button1_Click(ByVal sender As System.Object, _ 13: ByVal e ... |
Read now
Unlock full access