|
-
Jul 24th, 2013, 01:53 PM
#1
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by brandoncampbell
Anyway to fix the password in the textbox to reflect the later style password text with dots instead of asterisks?
That will do it: (to be done at run-time, e.g. Form_Load event)
Code:
TextBoxW1.PasswordChar = ChrW(&H25CF)
-
Aug 7th, 2013, 08:19 AM
#2
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
So I did notice that some of the settings don't save when you compile. For instance if you change the password char to whatever and you click build it will not have a password char in the exe. If it is set through the form like you stated above it works ok.
-
Aug 25th, 2013, 01:43 PM
#3
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by brandoncampbell
For instance if you change the password char to whatever and you click build it will not have a password char in the exe. If it is set through the form like you stated above it works ok.
The password char for dots "ChrW(&H25CF)" cannot be set at design time. (only at run time as stated above)
I have therefore now included a "UseSystemPasswordChar" property to the TextBoxW control. When set to true then the control will be created with the style bit ES_PASSWORD and thus display asterisks or dots as password text automatically (depending on the comctl32 version) .
-
Aug 26th, 2013, 03:14 PM
#4
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
The password char for dots "ChrW(&H25CF)" cannot be set at design time. (only at run time as stated above)
I have therefore now included a "UseSystemPasswordChar" property to the TextBoxW control. When set to true then the control will be created with the style bit ES_PASSWORD and thus display asterisks or dots as password text automatically (depending on the comctl32 version) .
Awesome work as always! I still have an issue when compiling where it does not save the changed settings. If I open the project. Change the textbox at the bottom via properties to systempasschar and click compile. The progress bar goes as if it is compiling but once it reaches the end it refreshes the project and the settings don't stick. The exe does not reflect the change and the project in the ide changes back to default text.
-
Aug 26th, 2013, 03:23 PM
#5
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by brandoncampbell
Change the textbox at the bottom via properties to systempasschar and click compile.
Did you try to close the Form first (WriteProperties will then run) before you compile?
-
Aug 26th, 2013, 03:32 PM
#6
Addicted Member
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Krool
Did you try to close the Form first (WriteProperties will then run) before you compile?
Didn't know that.. it worked.. Thanks! Why does it need to be closed?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|