Go Premium for a chance to win a PS4. Enter to Win


vb.net friend, etc

Posted on 2004-08-10
Medium Priority
Last Modified: 2010-04-17
I have noticed that on the textbox property there is a section called:

Under design there is Name, Locked, and modifiers

It always says friend. If I go to the dropdown box I can change it to private, etc. what does that do and please elaborate on it.

Question by:peanut1010
LVL 70

Accepted Solution

Éric Moreau earned 140 total points
ID: 11763647
It won't change anything on your form. But forms that inherits from the form on which the textbox is will have access or be blocked depending on this property setting. See the help for all the details.

Expert Comment

ID: 11767329
Here is a more complete reference from MSDN:

Structures declared with the Friend keyword have friend access. They are accessible from within their declaration context and from anywhere else in the same program.

For complete listing and explanation of the different enumerations, go to:


Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question