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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

1793 Nov 26,2002 11:19 PM UTC Dec 1,2002 10:09 PM UTC WinForms 2
loading
Tags: FAQ
Uzi
Asked On November 26, 2002 11:19 PM UTC

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

Uzi
Replied On 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...

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.

Warning Icon 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.Close Icon

;