Dart Home | PowerWEB TextBox for ASP.NET | Custom Development | Reply | PowerWEB TextBox for ASP.NET Topics | Forums |
Author | Forum: PowerWEB TextBox for ASP.NET Topic: Programmatically changing properties |
danzman From: Orland Park, IL USA Posts: 8 Member Since: 07/21/07 |
posted November 27, 2007 9:57 AM I would like to programmatically changed the property, the backcolor in particular. How do I change the HtmlBox1.TextWindow.Backcolor? |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 27, 2007 12:56 PM Hi, Adding the following to the Page Load event worked for me: HtmlBox1.TextWindow.BackColor = System.Drawing.Color.LightSteelBlue; Hope it helps, -ken |
danzman From: Orland Park, IL USA Posts: 8 Member Since: 07/21/07 |
posted November 27, 2007 4:14 PM Hi Ken, it works. I guess this would be the route to change other color properties. Am I correct? |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 28, 2007 8:56 AM Hi, Sure, or, if the settings will be static, you could use the Property Builder in the designer. -ken |
danzman From: Orland Park, IL USA Posts: 8 Member Since: 07/21/07 |
posted December 24, 2007 2:07 AM On the other hand, if I have a height data (as integer) stored in my web.config and wished to assign it to htmlbox1.height how is this done. I get an error assigning to it as string value or as integer value. |
K M Drake From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted December 26, 2007 1:07 PM Hi, Height is of type Unit. HtmlBox1.Height = new Unit(myHeightInt); Hope it helps, -ken ------ |
Reply | PowerWEB TextBox for ASP.NET Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |