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 / Design Time / November 2004

Tip: Looking for answers? Try searching our database.

Image resources - how can I rebuild them from files?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Uri Dor - 03 Nov 2004 16:42 GMT
I'm developing an app and using some low-quality bitmaps for desiging my
GUI - each bitmap is placed in an Image property or in an ImageList.
This means the bitmaps are serialized into the .resx file, right?
Can't I add the bitmaps as links to .bmp files in my project, so I could
rebuild all such images/image lists when my graphic designer finished
his work? Will I really have to manually re-set the Image property
everywhere in my project?
Uri Dor - 03 Nov 2004 17:16 GMT
just found it - if anybody's interested, look up ResXFileRef

> I'm developing an app and using some low-quality bitmaps for desiging my
> GUI - each bitmap is placed in an Image property or in an ImageList.
[quoted text clipped - 3 lines]
> his work? Will I really have to manually re-set the Image property
> everywhere in my project?
Uri Dor - 04 Nov 2004 08:42 GMT
still, there's a problem - the only way to serialize an ImageList seems
to be the ImageStream property, so I can't put a list of BMPs.
Can't I write something like:
  <data name="imageList1.Images" type="System.Resources.ResXFileRef,
System.Windows.Forms" >
    <value>one.bmp;System.Drawing.Bitmap, System.Drawing</value>
    <value>two.bmp;System.Drawing.Bitmap, System.Drawing</value>
    <value>three.bmp;System.Drawing.Bitmap, System.Drawing</value>
  </data>

> just found it - if anybody's interested, look up ResXFileRef
>
[quoted text clipped - 5 lines]
>> finished his work? Will I really have to manually re-set the Image
>> property everywhere in my project?
"Jeffrey Tan[MSFT]" - 05 Nov 2004 04:53 GMT
Hi Uri,

I will spend some time on this issue, I will reply to you ASAP. Thanks for
your understanding!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

"Jeffrey Tan[MSFT]" - 08 Nov 2004 08:47 GMT
Hi Uri,

After internal consulting, I was told that this syntax is not supported. I
think we may dynamically load the images from the disk through runtime
code, like below:Assembly assem = this.GetType().Assembly;

Stream progressStream = assem.GetManifestResourceStream(this.GetType(),
"animationLtoR_24bit.bmp");
Bitmap myStrip = new Bitmap(progressStream);
this.progressImageList.ImageSize = new Size(120, 15);
this.progressImageList.Images.AddStrip(myStrip);

Does this meet your need?
===============================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Uri Dor - 08 Nov 2004 08:55 GMT
runtime code means I won't see the images in the designer, right?
it seems like this is another area where the development environment
ignores source control.

Jeffrey Tan[MSFT] wrote:
> Hi Uri,
>
[quoted text clipped - 19 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 09 Nov 2004 06:46 GMT
Hi Uri,

Thanks very much for your feedback!!

I have feedback this issue to our product team. Also, you may provide your
suggestion to http://register.microsoft.com/mswish/suggestion.asp, your
suggestion will make our product better.

Thanks again!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


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.