Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2005

Tip: Looking for answers? Try searching our database.

Resource File Class in My.Resources Namespace in Vb2005.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas, Mark - 27 Oct 2005 16:31 GMT
Hi,
When I add a resource file it creates a new class in My.Resources namespace.
But the Class is Friend type, and also all the Property resource string is
also Friend type.

My question is how do I make it public instead of friend. Is there any way
doing it.
How do I use it from another project. Please help.

Thanks, Mark.
Herfried K. Wagner [MVP] - 27 Oct 2005 17:37 GMT
"Thomas, Mark" <Mark@nospam.com> schrieb:
> When I add a resource file it creates a new class in My.Resources
> namespace.
[quoted text clipped - 3 lines]
> My question is how do I make it public instead of friend. Is there any way
> doing it.

Write a class which has public properties and provides generic access to the
project's resources.  'My' is a project-level thing.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.