In Windows Forms projects, why does the designer use Friend WithEvents attributes in VB.NET and private in C # by default?
For example, in the form.designer. file form.designer. :
.cs
private Label Label1;
.vb
Friend WithEvents Label1 as Label;
For WithEvents it is more or less clear (for using Handles , apparently). But why is Friend in Visual Basic and private in C #?
serhio
source share