UserName Validation in VB 6.0

From: sch (anonymous_at_discussions.microsoft.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 06:26:09 -0700

Hello,

I have a login form in which a user enters a username and pwd in that i want to restrict the user to certain no of characters only.

For ex:
in the username text box i don't want the user to enter 25 characters i want the user to limit to 10 chars if he enters 11characters i want to tell him this is not permitted something like that

Thanks,



Relevant Pages

  • Re: Invalid characters for WTSQuerySessionInformation?
    ... code page different from Windows' default code page. ... We don't have to validate the username, ... I have discovered that Windows XP properly prevents characters such as ... WTSQuerySessionInformationW and WideCharToMultiByte.) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Invalid characters for WTSQuerySessionInformation?
    ... and '/' from being used in a username. ... Characters such as '$' and '@' are problematic, ... (By the way this is with the Unicode version WTSQuerySessionInformationW. ... WTSQuerySessionInformationW and WideCharToMultiByte.) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Invalid characters for WTSQuerySessionInformation?
    ... Characters such as '$' and '@' are problematic, for the reasons that we have discussed. ... But Windows XP permits these characters to be used in a username. ... As mentioned, WTSQuerySessionInformationA fails with quite a lot of characters, so I already made a workaround using WTSQuerySessionInformationW and WideCharToMultiByte.) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: What is the maximal length of usernames on Solaris?
    ... I don't know but 8 characters ... People who whine about petty shit such as how long a username can be ... should just forget all about any *nix system and stick with Windows. ... > reasons that it's been so successful. ...
    (comp.sys.sun.admin)
  • Re: "Rejecting" specific characters in a variable
    ... strdata contains 5 characters of, ... and another 10 characters of ... Example: Username is "test". ... mention it as a possibility in my first post); but now, ...
    (microsoft.public.vb.general.discussion)