The "MaxLengt" is working in vb.net 2005, try it in vb2005.