Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: Binding to multiple data sources Pin
secorbett21-Jul-11 2:20
secorbett21-Jul-11 2:20 
GeneralRe: Binding to multiple data sources Pin
michalrick29-Jul-11 22:10
michalrick29-Jul-11 22:10 
AnswerRe: Binding to multiple data sources Pin
PIEBALDconsult21-Jul-11 2:54
mvePIEBALDconsult21-Jul-11 2:54 
QuestionGet the ancestor nodes from XML Pin
NarVish20-Jul-11 20:57
NarVish20-Jul-11 20:57 
AnswerRe: Get the ancestor nodes from XML Pin
Mirko198020-Jul-11 23:42
Mirko198020-Jul-11 23:42 
GeneralRe: Get the ancestor nodes from XML Pin
NarVish21-Jul-11 0:01
NarVish21-Jul-11 0:01 
AnswerRe: Get the ancestor nodes from XML Pin
PIEBALDconsult21-Jul-11 2:41
mvePIEBALDconsult21-Jul-11 2:41 
QuestionHow can I filterresources from an external assembly by type (text, icons, etc.)? Pin
Erik20-Jul-11 20:31
Erik20-Jul-11 20:31 
Hello,

I already figured out how to load another assembly from my C# application, and extract the resources embedded to that assembly. My problem is that I'd like to filter the resources by type, i.e. I want to get only text resources, but not icons and other stuff.

The code I use at the moment looks like this:

Assembly target = Assembly.LoadFile(filename);
                string[] list = target.GetManifestResourceNames();

                foreach (var listentry in list)
                {
                    Stream resourceStream = target.GetManifestResourceStream(listentry);

                    var rr = new ResourceReader(resourceStream);
                    IDictionaryEnumerator dict = rr.GetEnumerator();
                    int ctr = 0;
                    while (dict.MoveNext())
                    {
                        ctr++;
                        string entry = dict.Value; //I'd like to know what kind of resource this is, how can I do that?

                    }
                    rr.Close();
                }


How can I determine which kind of resource entry I currently get, i.e. if it's an icon, a text resource, or something else?
QuestionMS Access Query Method Pin
M Riaz Bashir20-Jul-11 19:57
M Riaz Bashir20-Jul-11 19:57 
AnswerRe: MS Access Query Method Pin
Suresh Suthar20-Jul-11 20:49
professionalSuresh Suthar20-Jul-11 20:49 
AnswerRe: MS Access Query Method Pin
GuyThiebaut20-Jul-11 21:44
professionalGuyThiebaut20-Jul-11 21:44 
AnswerRe: MS Access Query Method Pin
Blue_Boy21-Jul-11 1:33
Blue_Boy21-Jul-11 1:33 
GeneralRe: MS Access Query Method Pin
jschell21-Jul-11 9:11
jschell21-Jul-11 9:11 
QuestionStill Struggling to make an autologin app which can automatically fill in the login details as per our URL entered Pin
hackerzpark20-Jul-11 17:30
hackerzpark20-Jul-11 17:30 
AnswerRe: Still Struggling to make an autologin app which can automatically fill in the login details as per our URL entered Pin
Suresh Suthar20-Jul-11 20:46
professionalSuresh Suthar20-Jul-11 20:46 
Questionabout static keyword. [modified] Pin
*DBAU20-Jul-11 11:09
*DBAU20-Jul-11 11:09 
AnswerRe: about static keyword. Pin
David198720-Jul-11 11:31
David198720-Jul-11 11:31 
AnswerRe: about static keyword. Pin
PIEBALDconsult20-Jul-11 14:20
mvePIEBALDconsult20-Jul-11 14:20 
GeneralRe: about static keyword. Pin
*DBAU21-Jul-11 2:27
*DBAU21-Jul-11 2:27 
AnswerRe: about static keyword. Pin
Richard MacCutchan20-Jul-11 22:27
mveRichard MacCutchan20-Jul-11 22:27 
GeneralRe: about static keyword. Pin
*DBAU21-Jul-11 2:30
*DBAU21-Jul-11 2:30 
AnswerRe: about static keyword. Pin
Shameel21-Jul-11 2:26
professionalShameel21-Jul-11 2:26 
GeneralRe: about static keyword. Pin
*DBAU21-Jul-11 2:28
*DBAU21-Jul-11 2:28 
QuestionChemical Equation Balance Pin
stephen.darling20-Jul-11 7:54
stephen.darling20-Jul-11 7:54 
AnswerRe: Chemical Equation Balance Pin
Ian Shlasko20-Jul-11 8:07
Ian Shlasko20-Jul-11 8:07 

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.