Jeroeneke Posted February 17, 2006 Share Posted February 17, 2006 (edited) Hi,In VB.NET 2005 you have resources with your form. For example a .png file is saved there you use in your form, and it will be integrated in the form.You can access that file by running this code:My.Resources.TestFile.Save("C:\TestFile.png")In this case, TestFile is the one in the resources folder (which will be integrated in the .exe), and TestFile.png is the one that will be saved under the "C:\" directory.Now my question is, is it possible to do the same with a .zip file ?This is what i thought that should work:My.Resources.TestFile.Save("C:\TestFile.ZIP")With TestFile as the .zip in the resources folder, and TestFile.ZIP should be saved under the "C:\" directory.But you can't use the ".Save" property for .zip ,etc. files!Anyone knows a workaround or something with this?I want to have a .zip file integrated in my form, which I can than copy out of the .exe to another folder which is given up between the "(...)" thx in advance! Edited February 17, 2006 by Jeroeneke Link to comment Share on other sites More sharing options...
Jeroeneke Posted February 20, 2006 Author Share Posted February 20, 2006 Comeon please, somebody should know ?!!thx! Link to comment Share on other sites More sharing options...
bobbert Posted February 23, 2006 Share Posted February 23, 2006 Try embedding the zip file as a resource. Should be able to search for how using MSDN, cant remember myself. You will most probably be able to manipulate it from there in some way *scratch* or you could just package it with the form... *shrug* there are a few ways AROUND it but go figure for the actual solution! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now