I have a custom control that inherits from TextBox
. I've added a Cue
property so that cue text is displayed. To display cue text I call:
SendMessage(this.Handle, 0x1501, (IntPtr)1, myCueText);
I need to disable the textbox and the cue text should remain visible. I've tried:
textBox.ReadOnly = true;
textBox.BackColor = SystemColors.Window;
The above code makes the cue text disappear. I've tried using Enabled
but it has the same effect as above.
Is there an alternative to disable the textbox and the cue text is still shown?