edit text in GUI as password??

Hi everyone!!! I have edit text box in GUI and I want to hiding all words as password (like ***) so how to do it??
Thanks

3 Comments

The easiest way is to set the text font(change arial for Webdings) to something like symbols then you get some squares in the edit field.
it works thanks!!

Sign in to comment.

 Accepted Answer

Stephen23
Stephen23 on 14 Dec 2015

3 Comments

Stephen Codeldick ur link superb ... but i need a user name and pwd for GUI matlab ... not login in dialoug 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 Stephen Cobeldick
@lakshmana prabu: But the links contain code, which solves exactly your problem. Please try them. You can easily modify them and adjust them to your needs.
Hi,
How can I put password and it should show "******" for each character in the box?

Sign in to comment.

More Answers (0)

Categories

Find more on Scripts in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!