Hi, today I am using TextBox_Change event to reject | characters.
Public Sub txtName_Change() If String.InStr(Last.Text, "|") > 0 Then Last.Text = Replace(Last.Text, "|", "") Endif End I guess MaskBox can do this much simplier, but how, what Mask? /Patrik ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user