none
Change embedded image in VB.net RRS feed

  • Question

  • Hello, I hope you can help with a small problem I am experiencing.

    I have a very complicated VB.net application with embedded resources. The application runs on a server, when a user logs in, it starts running a quick menu for all department at the top of the user desktop. There is also a script that checks if the user desktop have the latest version of the application, and if not download it from the server and replace the old one.

    All resources are embedded, including images and buttons. Our company has now change their logo colour and I have been charged with the task of changing the logo so the new one appears instead of the old one on all desktops. I foolishly thought if I simply locate the image, and replace it with the new logo, with the same dimension and name, it would work. But that is not the case.

    So, as you might have worked it out by now, my question is, how do I make a simple change like replace an image that is embedded within the application?

    It would make my day if someone could help me with this.

    Thanks.

    Thursday, April 2, 2015 9:39 AM

Answers

  • I got it working just now, there was a script the program is calling every time it runs, which undo all the changes by copying the previous version from the server. I just have to compile it into .exe file. Thanks for your help 
    Thursday, April 2, 2015 10:54 AM

All replies

  • Replace it in the resources, build and deploy again. 

    If you want a kind of 1960 replacement, by only changing the exe, then forget it. 


    Success
    Cor

    Thursday, April 2, 2015 10:31 AM
  • In your project, open the resource folder with windows explorer, locate the image you want to replace. Delete the file of the old logo. Add the file with the new logo. rename the file of the new logo to the same name as the old.

    Then recompile ... 

    Thursday, April 2, 2015 10:34 AM
  • .exe file got nothing to do with this. I am working with the source code. I was saying I replaced the img in the resource with the new img file. but the program seem to revert to the previous version as it is only running on local
    Thursday, April 2, 2015 10:53 AM
  • I got it working just now, there was a script the program is calling every time it runs, which undo all the changes by copying the previous version from the server. I just have to compile it into .exe file. Thanks for your help 
    Thursday, April 2, 2015 10:54 AM
  • I got it working just now, there was a script the program is calling every time it runs, which undo all the changes by copying the previous version from the server. I just have to compile it into .exe file. Thanks for your help 
    So Crazypennie was correct? Mark as answer if so please.
    Thursday, April 2, 2015 4:41 PM