|
-
May 24th, 2001, 05:24 PM
#1
How do I link a icon to a executable file
Hello,
I have a icon attached to the form header. I
would like to link the same icon to the executable file. Would I need to use a API function. Any help would be much appricated.
Thanks
Karl
-
May 24th, 2001, 07:51 PM
#2
Re: How do I link a icon to a executable file
I don't understand you.
In menu Project->Project Properties select Make.
In Application select icon "MyForm"
MyForm - form with your icon.
Andy Tower
-
May 24th, 2001, 08:46 PM
#3
Re: How do I link a icon to a executable file
Hello,
I went to project properties and to Make tab.
The Icon displayed is the standard VB icon.
I would like to use the icon I used on the main
form on the header.
Thanks
Karl
-
May 24th, 2001, 09:02 PM
#4
Re: How do I link a icon to a executable file
In the make tab, next to the icon, you'll see a combo box that lists all forms on your project. Select one form. The icon of this form will be set as your application icon.
The reason you see the VB standard icon is because you have not set the icon property of the form. In the form's properties, set the Icon property to a nice-looking icon.
-
May 25th, 2001, 05:50 AM
#5
Re: How do I link a icon to a executable file
Hello,
Thanks for your reply. In my Form event I have
written code for run time eg.
private Sub Form_load()
Form1.icon = loadimage(app.path & "\clock.ico")
End Sub
Do I still need to set the icon at design time under Form properties to link the icon to my exe.file.
Thanks
-
May 25th, 2001, 06:01 AM
#6
Re: How do I link a icon to a executable file
If you change icon in runtime, changes will be visible only for runtime.
If you want to see the exe file with that icon, you have to assign the icon to a form at designed time, or compiler will not know it. Then you need to do what shree suggested:
"In the make tab, next to the icon, you'll see a combo box that lists all forms on your project. Select one form. The icon of this form will be set as your application icon."
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|