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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

1793 Nov 26,2002 06:19 PM Dec 1,2002 05:09 PM Windows Forms 2
loading
Tags: FAQ
Uzi
Asked On November 26, 2002 06:19 PM

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).

UESTC
Replied On November 30, 2002 11:23 PM

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...

Uzi
Replied On December 1, 2002 05:09 PM

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...

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;