HowTo Set a jpg as form1 icon
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.
8 posts
Page 1 of 1
fist create new application
then make a module
delete all code found and put
put
then make a module
delete all code found and put
Code: Select all
then go back to form1 and under formloadModule Module1
Public Sub MakeIcon()
Dim b As Bitmap
b = New Bitmap("PUT_NAME_HERE")
Form1.Icon = DoWork(b, New Size(16, 16))
End Sub
Private Function DoWork(ByVal b As Bitmap, ByVal s As Size) As Icon
Dim bitmap As New Bitmap(s.Width, s.Height)
b = bitmap
Return Icon.FromHandle(b.GetHicon())
End Function
End Module
put
Code: Select all
MakeIcon()
nice i never seen this before, i like new codes
Good Job Bogoh67 cooll;
Good Job Bogoh67 cooll;
You can find me on Facebook or on Skype mihai_92b
The DoWork function isn't actually making an icon from the jpg image. The code should look like this:
Code: Select all
Private Function DoWork(ByVal b As Bitmap, ByVal s As Size) As Icon
b = New Bitmap(b, s.Width, s.Height)
Return Icon.FromHandle(b.GetHicon())
End Function
Thank you Cheatmsterbw!I'll use this.
Instead of LOL use this -
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
CoderBoy1201 wrote:Thank you Cheatmsterbw!I'll use this.You meant bogoh67
Nice code, And I think he said cheatmasterw cuz Bogoh's name's color is also same.
:o
I never seen this before i always created my icons to use
but thanks now i can just use this clapper;
Thanks
Dummy1912
I never seen this before i always created my icons to use

but thanks now i can just use this clapper;
Thanks
Dummy1912
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023