How i can change the text " border = none " in runtime ?

Stimulsoft Reports.NET discussion
Post Reply
lampson
Posts: 42
Joined: Wed Dec 30, 2009 4:28 am

How i can change the text " border = none " in runtime ?

Post by lampson »

How i can change the text " border = none " in runtime ?
Like this:

if(text1.Text == null) text5.border = none ;

Thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How i can change the text " border = none " in runtime ?

Post by Jan »

Hello,

You can use following code in GetValueEvent of text component:

Code: Select all

if (string.IsNullOrEmpty(e.Value))
{
  StiText comp = sender as StiText;
  comp.Border.Side = StiBorderSides.None;
}
Thank you.
lampson
Posts: 42
Joined: Wed Dec 30, 2009 4:28 am

How i can change the text " border = none " in runtime ?

Post by lampson »

:biggrin:

thank you very much
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How i can change the text " border = none " in runtime ?

Post by Andrew »

Always ready to help you.
Post Reply