Group: Forum Members
Last Active: 9 Years Ago
Posts: 4,
Visits: 4
|
Hi, I want to modify the BackColor-Property for several NTextBox-Controls to show the user that these controls are set to readonly. For the original WinForm.TextBox this property is available, but not for the NTextBox. Setting all affected TextBoxes to disabled is not very eye-friendly. Is there an elegant way to solve this? Greetings from Hamburg Volker
|
Group: Forum Members
Last Active: Yesterday @ 1:38 AM
Posts: 3,054,
Visits: 4,006
|
Hi Volker, First you need to set NTextBox not to inherit its palette settings from the palette of its parent and then you need to set Window property of the NTextBox.Palette to the desired color: textBox.PaletteInheritance = PaletteInheritance.None; textBox.Palette.Window = Color.Gray;
I hope it helps.
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 9 Years Ago
Posts: 4,
Visits: 4
|
That was helpful, thank you very much!
|