I have used it for controls and such.
Lets say you have a module wth code that needs to be public for other member
of your project, but you want it to be hidden from the end user. Declare it
Friend. If you want it to be accessed for everything then declare it
public.
I haven't found many times for the need, but does arise. For another
instance. I made a message box control that had 3 forms. I needed a class
to interact with the forms, but I didn't want a user to grab the forms, so I
made them friend classes.
Hope that help a little
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:39**********************************@microsof t.com...
I have read and re-read VB.Net's help on scope of variables but darned if
I can understand the difference between Friend and Public variables? --
Dennis in Houston