Hi southstander132, You can simpy do this trick so user can see the text even the control is disable:
textBox1.ReadOnly = true; textBox1.ForeColor = Color.Black; textBox1.BackColor = Color.Yellow; Just don't use 'SystemColors' for the ForeColor or BackColor value, because the result will be difference in difference system/OS/Theme windows. Regards, Rudion9550XT On Mar 29, 12:06 am, southstander132 <[email protected]> wrote: > Greetings, > > I know how to loop thru controls in a groupbox and disable them, or make the > entire groupbox enabled = false, but the users say they can't see the text > when the fields are disabled - the color is greyed out and too light. I > can't figure out how to make these fields (text boxes, comboboxes, etc.) > readonly instead. I get the error: > > Error 2 'System.Windows.Forms.Control' does not contain a definition for > 'Readonly' and no extension method 'Readonly' accepting a first argument of > type 'System.Windows.Forms.Control' could be found (are you missing a using > directive or an assembly reference?) > > Is there any way to do this? Or are they just stucked with greyed out text? > > Thanks so much in advance! -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
