hi everyone

I'm studying visual basic in my course
and in my book there was this example



so when I tried to do it , it didn't work
I did the same thing as written
but I don't know what is the problem with me

this is the error message apear to me


can you help