Friend WithEvents in VB vs private in C#
Posted
by serhio
on Stack Overflow
See other posts from Stack Overflow
or by serhio
Published on 2009-12-17T15:02:50Z
Indexed on
2010/04/30
0:57 UTC
Read the original article
Hit count: 434
Hello, friends
Who knows, why in vb.net WinForm projects the designer by default use the Friend WithEvents attributes and in C# - private ones.
By ex, in a form.designer.
.cs
private Label Label1;
.vb
Friend WithEvents Label1 as Label;
For WithEvents is more or less clear(for using Handles, apparently). But why Friend in VB and private in C#... Thanks.
© Stack Overflow or respective owner