I am making an application using visual studio and I am making an Excel Addon.
I would like to add a username and password field so I am using Editbox to do this however there doesnt seem to be a passwordChar field.
What could I use instead or how can I hide the text?
I am currently trying to convert the chars to * but its very slow.
Im also working in C#
This is my current solution:
private void ebxPassword_KeyUp(object sender, RibbonControlEventArgs e)
{
char last = ebxPassword.Text[ebxPassword.Text.Length - 1];
passwordText += last;
ebxPassword.Text = ebxPassword.Text.Replace(last.ToString(), "*");
}
My Final Solution:
It cannot be done, there is no simple way around it.
So instead of having these controls in the ribbon, I added a login button and when clicked loads a form with a standard text box and this works perfectly fine.