When I develop a Windows Forms app in Visual Studio using C#, every control that I add to my form is by default marked as private
, which is what I
Annoying, isn't it.
What I usually do is when the form is stable, I replace Friend WithEvents
to Private
then add WithEvents
to the controls that have Handles
clauses.
Yes, you would think there was a setting, but I never found it.
This was suggested to Microsoft, but they chose not to fix it.
[Sorry, posting this as an answer because I don't have enough points to add comments.]