What does the ‘friend’ modifier do in VB.NET?
Why is it the default modifier for GUI components in Visual Studio?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
friendin VB.Net is the same asinternalin C#, it means that it can be accessed anywhere in the same assembly, but not from other assemblies.I think it’s a sensible default since I would say that normally one assembly should not be using another assembly’s GUI controls (unless it’s a class library or similar that is built for the purpose).