mfc >> How can I make a password edit?

by Marco » Wed, 26 Nov 2003 15:56:59 GMT

How can I make a edit when I input the password the edit would show '*'s?




mfc >> How can I make a password edit?

by Kim Youngjin » Wed, 26 Nov 2003 16:08:54 GMT


I assume that you are using CEdit.

If you create that on Resource Editor, you can easily add password
property through Styles -> Password.
Or when you create it you have to add ES_PASSWORD.





mfc >> How can I make a password edit?

by Marco » Wed, 26 Nov 2003 16:14:08 GMT

Thank you
"Kim Youngjin" < XXXX@XXXXX.COM >





Similar Threads

1. Multiline Edit Box / Password Edit Box

2. How to avoid entering passwords for: Debugging Name and Password Required, Network Password

When I hit the F5 key on my C# ASP.NET Web Application it always asks me
"Debugging Name and Password Required". Is there a way to set my password
somewhere so I don't have to enter it every time? I'm in the Debugging users
group and also Administrator group, etc.

Also when I initially load the solution it asks me for my "Network
Password". Same question. I'm fairly sure this one happens because my
project is on my D: drive and not C:





3. Edit Boxes for passwords?

4. ActiveX with password edit control blanks out

Hi,
  I have an Active X control with  some controls in it. Assume the dialog 
hosts this ActiveX control. The dialog has 1 password edit control apart from 
this Active X control. The hosting application has XP styles enabled. Now if 
the dialog is opened and the focus is set to password edit control with 
CapsLock on.

Then I get a balloon by the Windows OS saying "Caps lock is on......" after 
this balloon is terminated the whole ActiveX vanishes. Only when I move the 
dialog the ActiveX is re-painted.

Any idea to solve this issue ? Any hints/pointers will be good.

Regards,
Avinash

5. Log files and cans of worms

6. Grid on ColumnHeader click making the grid row to edit mode

Hi,
  I saw that in Windows Forms DataGrid with new row 
creation set to true, if I have added a new row earlier 
which was empty and deleted the row and shifted the focus 
to any other control and then clicking on the column 
header of the grid is making the grid to go to edit mode 
which is causing the first row to be ready for allowing 
user input. Does anybody of you know how to stop this 
behaviour, i.e., new row should not be put into edit mode 
if I click on the column header. Please help me if you can 
stop that.

Steps to Reproduce :

1) Create a grid with column sorting set to false in the 
tablestyles
2) Set a DataTable with no rows to the grid such that grid 
allows new row creation
3) Start editing the first row on the grid and delete the 
row, now only one row with * mark on row header exists
4) Now shift focus to anyother control, then shift focus 
to grid by clicking on any column header.
5) Now see that the first row (only row) in the grid is 
turned to edit mode, no more '*' in the row header but the 
triangle appears.

I want to stop that, even if they click on the column 
header the '*' row should be there, it should turn to 
current row. It should allow for editing only when I click 
on a cell or the row header.
Anybody plz help

Thanks in Advance,
Shravan.

7. Editing png file makes background opaque - CSharp/C#

8. Rich Edit control makes Dialog close early

Try this please:

Create a simple dialog based MFC application with the default OK and CANCEL 
buttons. Add a Rich Edit control to it. Build the application and run it in 
debug (F5). The dialog terminates instantly.

Remove the rich edit control, rebuild, and the dialog will pop up normally.

I can't figure out why VC wants to do this. No error messages are displayed. 
It never even gets to OnInitDialog.

I get the same results with VC 6.0 and Visual Studio 2005.

Is there a trick to this?

Dave