Four things:

1.
copy the Paint event handler from VS and paste it here
You haven't done that. That's not even valid VB code.

2.
paste it here inside appropriate formatting tags
I'm not seeing any formatting.

3.
Post screenshots of what things should look like and what they do look like.
Need I say more?

4. Why are you using 'End'? NEVER, EVER use 'End'. If you want to exit the application then either call Application.Exit or Close on the main form. Whichever you choose though, it should absolutely NOT be done in the Paint event handler.