Hey,
I am pretty new to user controls / inherited controls and I am trying to find out what the best way to proceed is.
Without getting into why, what I am trying to do is create a control that is essentially a textbox (has all the properties and events of a textbox), but also has a label control that overlays on it. I don't care about any of the label's events, but I do want to be able to access its properties. I would be happy to access those properties through something like 'FunkyTextBox.Label.Caption', etc.
This seems easy enough to do with a user control, but I don't get to keep all of the textbox events without explicitly declaring them all, and I would also have to access the textbox's properties through something like FunkyTextBox.TextBox.Text. So I feel likeI should be to make an inherited control, but if I do, I don't get that same user control 'designer' to place the label where I want relative to the textbox, etc.
Any thoughts on how I should proceed?
Thanks,
Pete