Want to Set User Name and Password must be in Invisible... (USING IN GUI.. NOT USING IN DIALOG BOX)
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i need a user name and pwd for GUI matlab ... not USING login in a dialog box
a=get(handles.edit1,'string'); b='123456'; l=strcmp(a,b); if l==1 msgbox('rightpwd'); set(handles.edit1,'string',''); else msgbox('wrong pwd'); set(handles.edit1,'string',''); end
this is my code k but in this i wanna to add username... i set password but its visible but i need to show invisible so try to help me
0 commentaires
Réponses (1)
Jan
le 4 Jan 2016
You find many examples in the FileExchange: http://www.mathworks.com/matlabcentral/fileexchange/?utf8=%E2%9C%93&term=password
1 commentaire
Walter Roberson
le 4 Jan 2016
You might notice that this is the same response you received when you posted the same question earlier today at http://uk.mathworks.com/matlabcentral/answers/262564-how-to-set-user-name-and-password-in-gui-password-must-be-invisbile-pls-brefily-explain-a . There are several implementations in the File Exchange and you can read them to see how to do this, or you can just use one of them as-is.
Voir également
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!