Click here to Skip to main content
16,011,868 members
Home / Discussions / WPF
   

WPF

 
QuestionSilverlight + WCF Communication Pin
JS 200810-Jun-09 3:25
JS 200810-Jun-09 3:25 
AnswerRe: Silverlight + WCF Communication Pin
Mark Salsbery10-Jun-09 6:53
Mark Salsbery10-Jun-09 6:53 
GeneralRe: Silverlight + WCF Communication Pin
JS 200810-Jun-09 17:54
JS 200810-Jun-09 17:54 
GeneralRe: Silverlight + WCF Communication Pin
Mark Salsbery11-Jun-09 10:22
Mark Salsbery11-Jun-09 10:22 
QuestionHow to get images in Application's folder Pin
Nekkantidivya10-Jun-09 2:40
Nekkantidivya10-Jun-09 2:40 
AnswerRe: How to get images in Application's folder Pin
User 27100910-Jun-09 5:00
User 27100910-Jun-09 5:00 
AnswerRe: How to get images in Application's folder Pin
ABitSmart10-Jun-09 5:03
ABitSmart10-Jun-09 5:03 
AnswerRe: How to get images in Application's folder Pin
varun 200924-Feb-10 20:35
varun 200924-Feb-10 20:35 
Try this i am sure this will help u.
1.In Visual Studio, click the Project menu, and select Add Existing Item. Find and select the image you want to add to your project.
2.In the Solution Explorer window, right-click the image file you just added to your project, and select Properties from the popup menu. The Properties tool window appears.
3.In the Properties window (see picture below), change the Build Action property to Embedded Resource.
4.Build the project. The image will be compiled into your project's assembly.

Load Image Resource
Be sure to include the following namespaces in your project:

using System.IO;
using System.Reflection;
To load the image resource programmatically, use the following code:

Assembly myAssembly = Assembly.GetExecutingAssembly();
Stream myStream = myAssembly.GetManifestResourceStream( "MyNamespace.SubFolder.MyImage.bmp" );
Bitmap bmp = new Bitmap( myStream );

The trickiest part of loading an embedded resource is getting the correct path. A resource path takes this form:

<namespace>.<subfolders>.<image name>.<extension>

where:

namespace is the namespace for the project
subfolders is the folder path within the project, with each folder separated by a period instead of a slash
image name is the name of the image file
extension is the image file extension (for example, "bmp" or "jpg")
QuestionWPF Datagrid? Pin
S Rajput9-Jun-09 15:37
S Rajput9-Jun-09 15:37 
AnswerRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 15:48
protectorChristian Graus9-Jun-09 15:48 
GeneralRe: WPF Datagrid? Pin
S Rajput9-Jun-09 16:37
S Rajput9-Jun-09 16:37 
GeneralRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 17:17
protectorChristian Graus9-Jun-09 17:17 
GeneralRe: WPF Datagrid? Pin
S Rajput9-Jun-09 19:08
S Rajput9-Jun-09 19:08 
GeneralRe: WPF Datagrid? Pin
S Rajput9-Jun-09 19:33
S Rajput9-Jun-09 19:33 
GeneralRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 20:33
protectorChristian Graus9-Jun-09 20:33 
GeneralRe: WPF Datagrid? Pin
S Rajput9-Jun-09 20:58
S Rajput9-Jun-09 20:58 
GeneralRe: WPF Datagrid? Pin
Pete O'Hanlon9-Jun-09 21:53
mvePete O'Hanlon9-Jun-09 21:53 
GeneralRe: WPF Datagrid? Pin
Christian Graus9-Jun-09 22:24
protectorChristian Graus9-Jun-09 22:24 
QuestionGaussian Blur Effect Pin
Etienne_1239-Jun-09 6:50
Etienne_1239-Jun-09 6:50 
AnswerRe: Gaussian Blur Effect Pin
#realJSOP9-Jun-09 9:03
professional#realJSOP9-Jun-09 9:03 
AnswerRe: Gaussian Blur Effect Pin
Christian Graus9-Jun-09 10:51
protectorChristian Graus9-Jun-09 10:51 
AnswerRe: Gaussian Blur Effect Pin
Pete O'Hanlon9-Jun-09 23:06
mvePete O'Hanlon9-Jun-09 23:06 
GeneralRe: Gaussian Blur Effect Pin
Etienne_12310-Jun-09 3:49
Etienne_12310-Jun-09 3:49 
GeneralRe: Gaussian Blur Effect Pin
#realJSOP10-Jun-09 8:12
professional#realJSOP10-Jun-09 8:12 
QuestionNavigationEventArgs.Uri and LoadCompleted event Pin
Gary Wheeler9-Jun-09 5:32
Gary Wheeler9-Jun-09 5:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.