Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Automatic height property.
danzman

From: Orland Park, IL USA
Posts: 8
Member Since: 07/21/07
posted December 4, 2007 7:03 PM

Is there a way to have the HtmlBox adjust its height automatically depending on the content?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted December 5, 2007 9:05 AM

Hi,
Well, you can change HtmlBox.Height from within a callback, so I suppose it is possible.

For example, you could make the adjustment in the TextChanged event, or perhaps the AutoSave event.

However, you would have to make a calculation to determine the size, and I'm not sure how you would do that.
Perhaps you could examine HtmlBox.Text and count breaks.

Hope it helps,
-ken
danzman

From: Orland Park, IL USA
Posts: 8
Member Since: 07/21/07
posted December 13, 2007 10:50 PM

Thanks for the tip. I have been toying with the idea of changing and storing new settings (after previewing) into an xml or database file. This can be retrieved on page init or in pageload and assigned to the the textbox.height property.
Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX