473,431 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,431 software developers and data experts.

Re: External resources and forms designer

Hi,

You just need to add a Resource File to your ClassLibrary project.
Open the resources designer (just double-click on the resx file) and change
the 'Access Modifier' property in the designer (located on the top of the
designer-you have a combo box and you can switch from private to public).

Then Add a reference to your classlibrary from your windows forms app and
you can code something like this:
pictureBox1.Image = ExternalResources.Image1;
(assuming you have declared the 'using' reference).

Frédéric Queudret
CTO Mpoware
http://www.mpoware.com/
"Fred" <fo*****@free.fr.invalidwrote in message
news:Oc**************@TK2MSFTNGP03.phx.gbl...
Hello,

I created a class library project to store my images resources.
In another project (windows app) I just want to set an image for a
toolstripbutton.
Where can I write this simple line of code :
ToolStripButton1.Image = ExternalResource.ButtonImage
So that I can see the image in design mode ? And so that Visual Studio
won't create a copy of my image in the form's resx file ?

--
Fred
fo*****@free.fr
Jun 27 '08 #1
0 754

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marcus Ahlberg | last post by:
I've been coding a C# project in "pure code" and I would now want to import it into VS.net. I have created a project and imported all sourcefiles and it's compiling without problems, except for the...
3
by: Saradhi | last post by:
How to get the names of all the Resources embedded in a Resource File? -SARADHI
0
by: test.file | last post by:
We have an application that is running under Citrix. The application files are located on a shared network drive and the app is launched via UNC. The app contains WinForms that are called from...
1
by: Sam Smith | last post by:
Dear All I would be really grateful if someone would help me. I have scoured the docs and the web for this I am writing a VC++ application, using .NET and Windows Forms. I am using Visual C++...
6
by: AK | last post by:
I have a .NET application that compiles but has a problem during linking : error LNK2001: unresolved external symbol "int __cdecl ReadLn(struct _iobuf *,char * const)"...
0
by: Johann Blake | last post by:
I'm having trouble grasping how ASP.NET correctly locates resources. There is plenty of documentation on this subject but some things are not clear at all. In my ASP.NET application, I have...
7
by: Sergey Poberezovskiy | last post by:
Hi, I created two base forms: frmList and frmDetail, compiled them into a dll, and then want to use in my new project. The problem: When I created new inherited form, say frmClients, I cannot...
1
by: Lucvdv | last post by:
In an app that was working, all I did was specify an icon for the main form (through the form designer) and recompile it. Result: MissingManifestResourceException After digging around, I found...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.