Hi,
I'm trying to change the border color on a RadTextBox.
It should be easy using the control, but in my case the radtextbox is stored in a var.
Here a sample
So I can change the text, but I have a problem with this line (.textBoxElement) not present :
I'm trying to change the border color on a RadTextBox.
It should be easy using the control, but in my case the radtextbox is stored in a var.
Here a sample
Dim controle As String = CType(sender, RadTextBox).Name ' Change the text : It works !Controls(controle).Text = "Hello, World" ' Change the border = DON'T WORKDirectCast(Me.Controls(controle).TextBoxElement.Children(2), Telerik.WinControls.Primitives.BorderPrimitive).ForeColor = Color.Red
So I can change the text, but I have a problem with this line (.textBoxElement) not present :
DirectCast
Me.controls(controle).TextBoxElement.Children(2), Telerik.WinControls.Primitives.BorderPrimitive).ForeColor = Color.Red
Thanks for your help
