PDA

Click to See Complete Forum and Search --> : VB.net resx files?? How????


Sharpshot
Apr 25th, 2002, 04:54 PM
Ok...i'm building an MDI program right now, that uses icons and images. Thats not the important part. What I need is a way to have VB.net embed these images into a dll, or an exe or something, so that the user can't f*** around with them or delete them. I think what I need is a resx or resource file, but the documentation sucks on explaining how to implement it.:mad:

DevGrp
Apr 25th, 2002, 05:32 PM
Use an imagelist

programatix
Apr 25th, 2002, 05:40 PM
I'm not quite sure but in VB6, every icons you link to the controls or form are saved in the .res file of that form automatically.

It might the same for .NET

Sharpshot
Apr 27th, 2002, 04:13 AM
I figured out how to do it. You make a lil program to make your resx files (its all in the documentation). Then what I did was make a dll out of my images by referencing them to the images.resources file the other program made. Then all I had to do was add a reference in the compiler, and it embedded them into the dll (/r:images.resources) in the command line compiler.

I have the SDK, not VS.net or the VB.net IDE :mad: