Can I change the default modifier from Friend to Private in the Windows Forms designer in VS 2008?

后端 未结 2 1368
既然无缘
既然无缘 2021-02-15 18:02

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

相关标签:
2条回答
  • 2021-02-15 18:28

    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.

    0 讨论(0)
  • 2021-02-15 18:46

    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.]

    0 讨论(0)
提交回复
热议问题