473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image chaching and graphics resources...

I've got a winForm that has a good number of custom controls with custom graphics that are stored as resources in the project.
Recently, I updated all of the graphics with a new look. Added all the new images into the resource file and deleted all the old images.

But whenever the form is displayed in the designer, all of the old images still flash in before being painted over with the new images. Where is Visual Studio getting that graphics information? I've tried clearing out the bin and object folders and recompiling everything. Stopped and restarted VS, etc., etc... But I can't seem to get the old graphics out of the system.

Where is VS caching the old graphics? Why are they still hanging around like ghosts?

Any insight is appreciated.

Also, any resources that you can direct me towards as far as better understanding the way .Net deals with graphics would be great. My app seems to be really slow regardless of the fact that the code is pretty simple. I think it's all related to whatever the framework is doing that's keeping ghosts of my images in my app...

J

Apr 19 '07 #1
3 1731
Hi J,

This is a quick note to let you know that I am performing research on this
issue and will get back to you ASAP.

I appreciate your patience!
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 19 '07 #2
Hi J,

I performed a test on this issue. The following is the steps of my test.

1. Create a WinForm application project. Add a UserControl in the project.

2. Double-click the Resources.resx under the Properties folder in the
Solution Explorer to open it in the designer and add a picture in it.

3. Set the UserControls's BackgroundImage property to the picture in the
project resource file.

4. Build the project and drag&drop the UserControl on a form. The
UserControl shows the picture as its background image on the form in the
designer.

5. Open the Resources.resx in the designer, and add another picture in it.

6. Set the UserControl's BackgroundImage property to the new picture added
in the project resource file.

7. Build the project and re-open the form containing the UserControl. The
UserControl still shows the previous picture.

It seems that the previous picture has been cached by the form. I open the
form's resx file in the designer and switch to the Images view and see that
the previous picture is there.

Delete the cached picture in the form's resx file and re-open the form. I
see the UserControl shows the new picture as its background image now.

Please try my suggestion and let me know the result.

Sincerely,
Linda Liu
Microsoft Online Community Support

Apr 20 '07 #3
Thanks Linda.

"Linda Liu [MSFT]" <v-****@online.microsoft.comwrote in message
news:MD**************@TK2MSFTNGHUB02.phx.gbl...
Hi J,

I performed a test on this issue. The following is the steps of my test.

1. Create a WinForm application project. Add a UserControl in the project.

2. Double-click the Resources.resx under the Properties folder in the
Solution Explorer to open it in the designer and add a picture in it.

3. Set the UserControls's BackgroundImage property to the picture in the
project resource file.

4. Build the project and drag&drop the UserControl on a form. The
UserControl shows the picture as its background image on the form in the
designer.

5. Open the Resources.resx in the designer, and add another picture in it.

6. Set the UserControl's BackgroundImage property to the new picture added
in the project resource file.

7. Build the project and re-open the form containing the UserControl. The
UserControl still shows the previous picture.

It seems that the previous picture has been cached by the form. I open the
form's resx file in the designer and switch to the Images view and see
that
the previous picture is there.

Delete the cached picture in the form's resx file and re-open the form. I
see the UserControl shows the new picture as its background image now.

Please try my suggestion and let me know the result.

Sincerely,
Linda Liu
Microsoft Online Community Support

Apr 21 '07 #4

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

Similar topics

4
16188
by: Kenny | last post by:
I have been trying to write a script that will increase the size of and image when you mouse over it, and decrease it to original size, when you mouse out. After a couple of attempts, this is what...
15
31771
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
1
3619
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox...
5
2372
by: Tamir Khason | last post by:
I have huge bitmap inmemory (about 4K x 6K 300dpi) and I want to quick resize it so old fasion way: Bitmap result = new Bitmap( nSize.Width, nSize.Height); using( Graphics g1 =...
15
5302
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
1
4258
by: Doug Handler | last post by:
I'm using VS2k5 and i've added a bunch of images to the project's resource.resx file and thus they reside in the Resources folder. I want to dynamically add an image to my project. I have no...
7
1768
by: G .Net | last post by:
Hi I have a form on which I have a picture box. I have placed a GIF as the image for this picture box. The GIF has a transparent background. If I change the background color of the form, then...
4
2736
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. ...
2
2125
by: JR | last post by:
Hi, I need to change the notifyicon in a countdown. after about 3000-5000 times there is an error. Here is all the code. what is wrong please help
0
7129
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...
1
7061
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
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.