I wanted to play around with themes, just for practicing and I wanted theme to display icon and images on buttons and such. After adding an image via properties tab, it didn't show so I banged my head few times thinking how hard this would be... But it's pretty easy.
![[Image: YIG1Q.png]](https://i.imgur.com/YIG1Q.png)
Theme was made by TrinityCoder (https://hackforums.net/showthread.php?tid=1914676), hope he won't get mad because of this ^^"
Does the image look interesting? Y/N?
If not... Bye bye?
Where does the magic happen?
In theme code.
1. Put images into resources, I hope you know how.
2. Find a control that you would like to add an image to, and after all drawing code add:
Code is self-explanati... (I don't know how to spell this).
And for the icon, add this code in theme drawing:
Useful thing here is that you can add code on control that changes the text of one control, it will automatically change the image.
On my preview, if I click on "User" button, the text on groupbox will change to "User" and it will change the chat image to the image on the "User" button.
That would be it ^^ If you have any questions, PM me or just post here.
![[Image: YIG1Q.png]](https://i.imgur.com/YIG1Q.png)
Theme was made by TrinityCoder (https://hackforums.net/showthread.php?tid=1914676), hope he won't get mad because of this ^^"
Does the image look interesting? Y/N?
If not... Bye bye?
Where does the magic happen?
In theme code.
1. Put images into resources, I hope you know how.
2. Find a control that you would like to add an image to, and after all drawing code add:
Code
If Text = "Your-text-here" Then
G.DrawImage(My.Resources.your-image, 0, 0)
End IfCode is self-explanati... (I don't know how to spell this).
And for the icon, add this code in theme drawing:
Code
G.DrawImage(Form1.Icon.ToBitmap, 0, 0)Useful thing here is that you can add code on control that changes the text of one control, it will automatically change the image.
On my preview, if I click on "User" button, the text on groupbox will change to "User" and it will change the chat image to the image on the "User" button.
That would be it ^^ If you have any questions, PM me or just post here.



