We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I shrink the client region of a textbox control?

I wanna build a textbox, which derives the Forms.TextBox class, and add a button at the right end of that textbox. I call this TextEllipsis. But I haven't found out how to shrink the client region, so that the text doesn't hide under the button (which I draw).

2 Replies

UE UESTC December 1, 2002 04:23 AM UTC

In my opinion, you don't need to make you class derive from TextBox. you can make it inherit from another container class, like Panel, then add a TextBox object and a Button object on it. But I am not sure...


UZ Uzi December 1, 2002 10:09 PM UTC

But if I used your method, I will have to map many textbox's properties back and forth. > In my opinion, you don't need to make you class > derive from TextBox. > you can make it inherit from another container class, like Panel, then add a TextBox object and a Button object on it. > But I am not sure...

Loader.
Live Chat Icon For mobile
Up arrow icon