Very simple image dll no coding required

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

hi i've got an idea today i didn't thought that it will work but it did

in this tutorial i will show you how to store an image in a dll file and load it in your project
Absolutely no coding required

i repeat this is the simple way

Create the dll
1. create a new classlibrary project and name it what ever you want
2. go to Project--Add UserControl
3. pot an imagebox on the usercontrol and set its dock property to Fill
4. Delete the class (it has to remain only the UserControl)
5. load your image in the picturebox and debug/build your app

Add to windows form
1. create a new project
2. go to Toolbox -- Chose Toolbox Items --Browse ----> select the dll that you created
3. Go to you Toolbox and you will find a new control with your dll name
4. Drag it in to your form and that's it your image will appear there


I don't know if someone else did this(if you find it elsewhere you have my word that I've not copied it its pure coincidence)

That's it guys i hope you like it is not very advanced but it could prove very useful to someone..... someday
You can find me on Facebook or on Skype mihai_92b
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

ooh good job :D
i saw one here a few months ago but it required code and i dont think it worked
question.
can we do it with more than 1 usercontrol?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

hmm useless i think :D
and i hate projects/dll's without coding -.-
http://vagex.com/?ref=25000
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

why have a dll when you can just add a picturebox to your form which is ALOT more simple.

i guess people prefer coding instead of having 10 + dll's just to change image...
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

CodexVideos wrote:
why have a dll when you can just add a picturebox to your form which is ALOT more simple.

i guess people prefer coding instead of having 10 + dll's just to change image...
yeah instead of :
Code: Select all
panel.controls.add(usercontrol20)
panel.controls.remove(usercontrol19)
panel.controls.usercontrol20.size = 50,50
Code: Select all
panel.backgroundimage = properties.resources.Img20;
ALOT easyer + safer+less kilobytes
http://vagex.com/?ref=25000
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

YourSocksRoxx, just killed the topic :D
still dll does save spot in the project for other stuff
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
6 posts Page 1 of 1
Return to “Tutorials”