Microsoft Developer Network > Página Inicial dos Fóruns > Visual C# General > How do I access images in the resx file as if they are in an array?
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoHow do I access images in the resx file as if they are in an array?

  • quarta-feira, 4 de novembro de 2009 19:28DOSrelic Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    I have an assignment program that uses an array of images that are created from a supporting resource folder but I wish to incorporate them into the final exe file so how do I make an array from the Resources.resx file please? Also, one of the images in the resx file is incorrect and should be removed. How can I remove that please? Every time I try anything with the Resources.resx file the Visual Studio 2008 IDE hates me! Any knowledgeable advice would be greatly appreciated, thanks.
    Thanks & Best Regards [DOSrelic] ¨`•._.®._.•´¨

Respostas

  • segunda-feira, 9 de novembro de 2009 8:23Roahn LuoMSFT, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hello,

    As I understand, we could not open our Resources.resx file in Visual Studio IDE. Would you please tell us what is the error message? Could we generate a new resource file and then open it in Visual Studio?

    Basically, instead of like an array, resource file is consists of XML entries. Each entry contains a Key/Value pair. We could use the ResXResourceReader or ResXResourceWriter class to manipulate the XML resource (.resx) file.

    Best regards,


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback, please tell us.
    Welcome to the All-In-One Code Framework!

Todas as Respostas

  • segunda-feira, 9 de novembro de 2009 8:23Roahn LuoMSFT, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hello,

    As I understand, we could not open our Resources.resx file in Visual Studio IDE. Would you please tell us what is the error message? Could we generate a new resource file and then open it in Visual Studio?

    Basically, instead of like an array, resource file is consists of XML entries. Each entry contains a Key/Value pair. We could use the ResXResourceReader or ResXResourceWriter class to manipulate the XML resource (.resx) file.

    Best regards,


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback, please tell us.
    Welcome to the All-In-One Code Framework!
  • segunda-feira, 16 de novembro de 2009 21:20DOSrelic Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    Roahn no error message as I can open the file but I am having trouble understanding how to access the contents as if they were in an array and I don't know how to delete incorrect items from it in the IDE! can you or anyone please give me their insight into how to resolve these dilemmas please? 

    Cheers. 


    Thanks & Best regards. DOSrelic L®L