|
-
Sep 10th, 2021, 12:51 AM
#4
Re: Command buttons from upgrade and newly added in Visual Studio 2019 are different
 Originally Posted by VisualBeginner.NET
However, I cannot put it in a for loop like For each ctrl in Form.Controls, ctrl.UseVisualStyleBackColor = True. Is there another way or will I have to manually change all of them on each form?
If you do it in code then it would have to be done on a per-form basis, even if you do use a loop. If that property is set to False in the designer code file then you can do a Find & Replace In Files. You can do a Replace All if you do want them all replaced, otherwise you can Find Next and Replace as required.
If you want to do it in the designer itself, open a form and select all the Buttons, then set the property to False in the Properties window. Again, that's a per-form operation.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|