Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Question

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Resolved [RESOLVED] [2005] Question

    The public protected and the private property values are three property value that are common across all the .NET languages but VisualBasic.NET support two other value, Friend and Protected Friend

    What is the use of both this value how to use it? Where to use it?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Question

    Have you read the documentation? If not why not? If so what part is not clear?
    The Friend (Visual Basic) keyword in the declaration statement specifies that the elements are accessible from within the same assembly, but not from outside the assembly.
    The Protected and Friend keywords together in the declaration statement specify that the elements are accessible either from derived classes or from within the same assembly, or both.
    C# and C++.NET both have the 'protected' key word too. Also, the C# equivalent of 'Friend' is 'internal', so this is by no means VB-specific.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: [2005] Question

    Thanks friend in my book only above line was given not the documentation so I ask the question
    Thanks for guidance

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] Question

    You should ALWAYS check MSDN and don't rely on any book to have everything. You should install the MSDN library locally but, if you can't or don't want to for some reason it is all available on-line. It should always be the first place you look if you need information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width