Try to run in debug mode. Simulate if the code will be executed when the checkbox is checked. If not, try different event. If so, try to output the value of "addr" variable via messagebox it it has value. If it has, try to parse in different way other than using ToString() function.