Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Help on using project resources in VB.Net (SharpDevelop 4.4.1)

$
0
0

Hi everyone,

 

I'm new to SharpDevelop (need to write a small application in VB.Net) and trying to use project resources (project wide Images, Strings, etc.) Unfortunately, I'm not able to get this working.

In this old announcement it looks pretty straightforward, but there is not explanation on how to create a project resource.
http://community.sharpdevelop.net/blogs/christianhornung/archive/2008/09/10/windows-forms-designer-project-resource-support.aspx

However, there are some basic explanations available on the wiki, but after adding a new Resource1.resx file the contents are not displayed in the "image dialog box" of e.g. a PictureBox.
https://github.com/icsharpcode/SharpDevelop/wiki/Using-Resources

Is it correct, that all files and entries from resouce files NOT directly connected to a form should be displayed here?

 The best I could manage to get was ti directly import the image file to the project (put it in a folder called Images), opended the properties and set Build mode to EmbeddedResource. After that, the file was shown in the project resource part, however, it had a child note with an error message that is is not a valid resource stream.

Can someone please tell me how create and use project resource in my VB.Net application? (I managed to get an image from a resouce file using ResourceManager und getObject, but I would like to use the Windows Forms designer with the corresponding properties)

 

Thanks for your help
Markus


Viewing all articles
Browse latest Browse all 1764

Trending Articles