I would say

if txtName1.Text.Length = 0 then...

is best because it's just fetching a property that is already known, rather than some of your other suggestions that have to do extra string comparison processing.


$0.02