Menustrip textbox and password char?

J. Scott Elblein

Well-known member
Joined
Dec 14, 2006
Messages
166
Location
Chicago
Programming Experience
10+
Hi

I'm trying to use a textbox on the menustrip for containing passwords, and there is no apparent PasswordChar property that I can hide visible passwords. Anyone know of a workaround?

thanks!
 
If you'd read the documentation for the ToolStripTextBox class you'd have seen that it has a TextBox property, described thusly:
Gets the hosted TextBox control.
Once you've got a reference to the TextBox object you can set its properties as you would any other, e.g.
VB.NET:
Me.ToolStripTextBox1.TextBox.UseSystemPasswordChar = True
 
lol, if you only knew how much time I spend trying to get some coding done and ending up staring at docs and help files all day and night instead...

Thanks for the slap on the hand/scolding though. ;)
 
Back
Top