Allow only hex numbers c# WP8.1 -
im trying block number dont hex number, using virtualkey , codes
private void txthexsoma1_keydown(object sender, keyroutedeventargs e) { if (e.key == (virtualkey)(65) || e.key == (virtualkey)(66) || e.key == (virtualkey)(67) || e.key == (virtualkey)(68) || e.key == (virtualkey)(69) || e.key == (virtualkey)(70) || e.key == (virtualkey)(48) || e.key == (virtualkey)(49) || e.key == (virtualkey)(50) || e.key == (virtualkey)(51) || e.key == (virtualkey)(52) || e.key == (virtualkey)(53) || e.key == (virtualkey)(54) || e.key == (virtualkey)(55) || e.key == (virtualkey)(56) || e.key == (virtualkey)(57) || e.key == (virtualkey)(20) || e.key == (virtualkey)(8) || e.key == (virtualkey)(46)) { e.handled = false; } else { e.handled = true; }
but have problems, example: if first lyric uppercase happen nothing, , others characters : (, ), #, ! , many others accepets
how fixed ?
Comments
Post a Comment