I am placing a textbox within a textbox like this:
I have achieved the above with the following code:
var innerTextBox = new TextBox();
innerTextBox.Width = 100;
var outerTextBox = new TextBox();
outerTextBox.Multiline = true;
outerTextBox.Height = 100;
outerTextBox.Width = 200;
outerTextBox.Controls.Add(innerTextBox);
Now the problem is that the text goes behind the textbox, how can I prevent that?
I would also like the textbox inside to behave as text so that one can delete it with backspace just like regular text.
Can somebody please point me to the right direction?
This is a winforms project.
Thanks a lot!