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

后端 未结 2 1366
既然无缘
既然无缘 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.

提交回复
热议问题