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
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
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
ooh good job 
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?

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 

hmm useless i think
and i hate projects/dll's without coding -.-

and i hate projects/dll's without coding -.-
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...
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
CodexVideos wrote:why have a dll when you can just add a picturebox to your form which is ALOT more simple.yeah instead of :
i guess people prefer coding instead of having 10 + dll's just to change image...
Code: Select all
panel.controls.add(usercontrol20)
panel.controls.remove(usercontrol19)
panel.controls.usercontrol20.size = 50,50
Code: Select all
ALOT easyer + safer+less kilobytespanel.backgroundimage = properties.resources.Img20;
YourSocksRoxx, just killed the topic 
still dll does save spot in the project for other stuff

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
Copyright Information
Copyright © Codenstuff.com 2020 - 2023