THREAD RESOLVED
Hi, how do you change the Icon in the top left of a form? I tried to change it and it couldn't find any of my pictures. Do they have to be a particular size or file type?
Thanks
Printable View
THREAD RESOLVED
Hi, how do you change the Icon in the top left of a form? I tried to change it and it couldn't find any of my pictures. Do they have to be a particular size or file type?
Thanks
Hey,
This is how you would do it at runtime:
However, at design time, you can set this property in Visual Studio.Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Icon = New Icon("1.ico")
End Sub
Gary
And yes, in order to show correctly, they would have to be the same size as the default icon which shows on the form. I think this is 16x16.
Gary
how can i get it to the required size? And the actual size is 32X32 but what units? Also when you said "you can set this property in Visual Studio" do u mean by going on the properties of the form and clicking on the "Icon" bit?
You would need to resize the image. You can do this in any drawing package.
And yes, that is what I mean about going to the properties.
yes i used paint to resize it but it still cant seem to find it. Any more ideas?
If you look at the properties of the main form, there is a property called "Icon" where you can click and open a browser. Browse to the file and select it. It is expected to be of type "ico".
yes i clicked the "Icon" and i searched for my file but it still cant seem to find it. How do i make my picture of type "ico"?
You can use http://www.irfanview.com/
What do you mean you can't seem to find it?Quote:
yes i clicked the "Icon" and i searched for my file but it still cant seem to find it. How do i make my picture of type "ico"?
There is actually an icon editor within Visual Studio. Right Click on your project, add new item, and then select Icon File.Quote:
How do i make my picture of type "ico"?
Gary
i mean i cant find my picture when im looking for it through visual studio. I dont think its the right size.
oh i just saw bulldogs link and i downloaded the program and succesfully converted the icon. It is now working. Thanks
THREAD RESOLVED
Got there in the end!
Please mark the thread resolved.
i cant mark it resolved because i have a problem with the java script or so ive been told instead i will edit my first post and say it is resolved from there. I have already rated u positive so i cant give you positive feedback for a while. Thanks for your help bulldog and gep
even though the thread is resolved, you can convert your images into Icons with
http://convertico.com