473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to get icon from url............

how do i get icon from url into combobox? i already got webbrowser
working it is lsimilar if u typed www.firefox.com, u will c icon stored
in combobox. ne ideas how to do this?
regards,
supra

Jul 21 '05 #1
5 2551
Hi Supra,

If I understand you correctly you need to specify an icon in your web page to get the icon in the address box.

<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">

If you want to retrieve this icon to put into a combobox of your own, you need to retrieve the file using the link specified in the source, then use an ownerdraw mode to draw the icon and the text.

FireFox uses this line to specify its icon

<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png" type="image/png">

--
Happy coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #2
u absolutely. I have one question ...what about www.playboy.com.....how
will u know which icon?

<link rel="stylesheet" href="/tools/css/universal.css" type="text/css" />
<link rel="stylesheet" href="tools/css/homepage.css" type="text/css" />

regards,

Morten Wennevik wrote:
Hi Supra,

If I understand you correctly you need to specify an icon in your web
page to get the icon in the address box.

<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">

If you want to retrieve this icon to put into a combobox of your own,
you need to retrieve the file using the link specified in the source,
then use an ownerdraw mode to draw the icon and the text.

FireFox uses this line to specify its icon

<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png"
type="image/png">


Jul 21 '05 #3
Hi Morten,
i understand...but i know how to do this.
thank, Morten.
regards,
supra

Supra wrote:
u absolutely. I have one question ...what about
www.playboy.com.....how will u know which icon?

<link rel="stylesheet" href="/tools/css/universal.css" type="text/css" />
<link rel="stylesheet" href="tools/css/homepage.css" type="text/css" />

regards,

Morten Wennevik wrote:
Hi Supra,

If I understand you correctly you need to specify an icon in your web
page to get the icon in the address box.

<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">

If you want to retrieve this icon to put into a combobox of your own,
you need to retrieve the file using the link specified in the source,
then use an ownerdraw mode to draw the icon and the text.

FireFox uses this line to specify its icon

<link rel="icon" href="http://www.mozilla.org/images/mozilla-16.png"
type="image/png">


Jul 21 '05 #4
In cases like playboy.com look for a file called favicon.ico in the root directory.

http://www.playboy.com/favicon.ico

--
Happy coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #5
thank

Morten Wennevik wrote:
In cases like playboy.com look for a file called favicon.ico in the
root directory.

http://www.playboy.com/favicon.ico


Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vic | last post by:
I am trying to change an icon associated with my application's main form and the application itself. 1. I selected my main form in IDE "Solution" tab and went to "Properties" window. 2. I found...
4
by: Terry | last post by:
There are a number of things about using unmanaged resources in Windows Forms programming that is unclear to me. In C++, if you loaded an icon resource using "ExtractIcon()", the resource was...
8
by: Adrian | last post by:
How do I put an icon on a form using code? Thank you.
2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
14
by: Kishan Hathiwala | last post by:
Hi i have kept a statusbar in the form with panels = true. and total there 3 panels. whenever i click on the 3rd panel a menu appears showing online and offline and either is enable at a time....
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
3
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon...
4
by: randy1200 | last post by:
I have a Windows application that previously had the company logo "MyCompany.ico" added to the upper left-most corner. The company has since issued a new version of "MyCompany.ico" that looks...
4
by: Marcolino | last post by:
Hi, I have simple needs but I don't know how to implement it. I have application that create Dynamic Button. I need to set the image on this button, getting the icon from a form. So pratically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.