Hello there!
I was tired of having to edit my hosts manually, so I just started a small app that will open a nice user interface to it for me.
Most of the code is done. It opens the hosts, edits, saves, has cut, copy, paste, undo and redo functions. But my questions isn't related about that.
The questions are: I'm using a custom icon that I've downloaded from deviantArt. The .ico file is 344Kb larger. When I use it on the form, it is like the system copies it into the exe file. There is some way to do this but saving a bit of space? Also, the main window icon is separated from this one, so if I re-reference it, the program size is twice as big. The latest compiled assembly has 715Kb, which I think is too large for a small app. It will become even bigger because I have 2 forms and don't want to waste space with icons.
Another thing: everytime the user save the hosts file, it'll create an backup named hostsddMMyyyyhhmmss
, where the ddMMyyyyhhmmss
are day, month, year, hour, minute, second, respectively. I want to 'filter' them and show them inside a ListView control, so user can select one to restore. How can I filter the files named just like hostsddMMyyyyhhmmss
?
Thanks guys, that's all for now.