PasswordChar property in ToolStrip textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

As I noticed, there's no such property in a toolstrip textbox. So, if I need
to collect a password in a toolstrip, what would be the best approach ?

Thanks !
 
I'm not that familiar with the 2005 controls (we haven't yet upgraded....),
but can't you find a reference to the hosted TextBox control in the
ToolStripTextBox object, and set the PasswordChar property to True, i.e.:

(VB)
MyToolStripTextBox.TextBox.PasswordChar = True
 
You guessed right, Keith, but no, the property is not only exposed in the
toolstrip designer interface, but also in the textbox itself. I'm considering
messing around with Keypress/Keydown to pass chars to the tag property of the
textbox and so on... I don't know...
 
Back
Top