H
hartley_aaron
Hi,
What does it mean when VS automatically adds a line like this to code
of my form:
Friend WithEvents Label1 As System.Windows.Forms.Label
Also, I noticed a modifier property for each control and the default is
Friend. When modifier is set to Friend, I can access the control from
anywhere with the application, while if it is set to private it can
only be accessed within the form. If I don't need to access a control
outside of a form, should I set the modifier to private? On the other
hand, if friend is the default, maybe I should leave it as is (?).
Thanks,
Aaron
What does it mean when VS automatically adds a line like this to code
of my form:
Friend WithEvents Label1 As System.Windows.Forms.Label
Also, I noticed a modifier property for each control and the default is
Friend. When modifier is set to Friend, I can access the control from
anywhere with the application, while if it is set to private it can
only be accessed within the form. If I don't need to access a control
outside of a form, should I set the modifier to private? On the other
hand, if friend is the default, maybe I should leave it as is (?).
Thanks,
Aaron