New to C# so forgive me if i am missing something simple here.
I am trying to set a labelink(On click) to copy the text of a maskedtextbox(phone number) to the clipboard minus the mask. I have set the property in the maskedtextbox to include literals only. If i select the text and ctrl+c it works perfectly. I cannot get this to work on a button click though i have tried Clipboard.SetText(custBtnText.Text); and it will run but it gives me 000-000-0000 and i need 0000000000. Any suggestions on this would be greatly appreciated.
Thanks
Simply set the
masked.TextMaskFormat=MaskFormat.ExcludePromptAndLiteralsand then call .Text