471,627 Members | 1,107 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

button images..

I need buttons in my application that have a jpeg skin. However, I dont want
to include the jpg file in my distribution package. How can I incorporate
the jpg into c# code? Maybe by converting it to Hex code? Please let me

Feb 11 '06 #1
2 1150
Is this a WinForm app? If so, you can add the image to your project, go
to properties, and set it to an embedded resource.

David Barkol

Feb 11 '06 #2

After you've embedded the resource, you'll need to get it back out a
runtime. It differs for .NET 1.x and .NET 2.0. For some quick info,
check out:

Plus, you can use embedded resources in both WinForms apps and ASP.NET
applications. Here's an ASP.NET article:

-- Tim Scott

Feb 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by robert | last post: by
1 post views Thread by Lee David | last post: by
1 post views Thread by jphelan | last post: by
3 posts views Thread by NateDawg | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.