Greetings. I'm having a rough time solving this problem.
this is my global dec
Dim btns As Button() = New Button() {Button1, Button2}
and this is my eventhandler
Dim btnName As Button = DirectCast(sender, Button)
Dim i As Integer
btns(i) = New Button
For i = 0 To btns.Length Step 1
toothName = " " & btns(i).Text & " - Upper " <- in here it says Object reference not set to an instance of an object
Next
can you guys please tell me the other possibilities why i'm getting this error? Thanks.