This documentation is archived and is not being maintained.

'.' expected

The code has a Handles clause that contains an exclamation point (!).

Error ID: BC30287

To correct this error

  • If the Handles clause refers to an event within an object, use a period (.) to separate the object from the event.

    This example handles the Click event from the Button1 object.

    Sub Button1_Click(ByVal sender As System.Object, _
            ByVal e As System.EventArgs) Handles Button1.Click