I'm just a beginner in VB and I made a program which says if a number is a perfect square or not. When I enter a negative number I get an error. How can I fix this problem?

Thanks.