Reputation: 548
I am developing a c# winform application. The application will minimize to the system tray, and there are two options for the user to choose from, show and exit . Both are working well. Right now i need to implement a function whereby when the user chooses exit, I need to display a textbox for the user to key in his/her password just above the system tray. The inputbox must mask the character type by the user as the user will be typing his/her password. I want to know whether there are any other way other than creating a new form with a textbox to fulfill this feature.
I tried to import use the visual basic textbox to perform this but unfortunately, I cannot mask the characters typed by the user. Are there any other way to do so other than creating a new form?
Upvotes: 2
Views: 182
Reputation: 8386
There's no out-of-the-box solution for what you're trying to do, but the .NET Framework makes available to you all the components to easily make it happen.
There are two parts to showing a password TextBox:
Upvotes: 1
Reputation: 51684
http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.passwordchar.aspx
Upvotes: 1