Windows Store 8 Apps: Validate Username and Password using C# RRS feed

  • Question

  • Hi, all.. I create a login page for windows store 8 app using visual studio 2012 ultimate. Did someone know the error? [shows at picture below] Or "Information.IsNumeric" didn't support using in windows store 8 app? Please tell me if someone know... Thanks. : )

    Tuesday, September 24, 2013 2:01 PM


  • Hi Miko,

    The Microsoft.VisualBasic.Information namespace is not available to Windows Store apps.

    Char.IsNumber will tell you if a given character is a number. In your case it doesn't look like this matters, since you're doing a direct string comparison: I'd just compare with the known character values without checking if it's numeric.

    Alternately, use Integer.Parse() to convert the string to a number, but that may give you false positives for 0.


    Tuesday, September 24, 2013 4:38 PM