Hello all,

I tried making my application with Option Strict On. Arg!! I understand the implicit conversion errors and functions that have to have their return type declared, but what is it with late binding? I can't declare a variable of type [some object type] and then assign an object to it? That seems really stupid.

Lets say I try to do this:

VB Code:
  1. Dim item As ListViewItem
  2.             item = sender.GetItemAt(e.X, e.Y)

I tried making it work like this:

VB Code:
  1. Dim item As ListViewItem = sender.GetItemAt(e.X, e.Y)

How could I do what I am trying to do with Option Strict On?

Thanks.