Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Get Icon from CallingAssembly (or ...)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pieter - 10 Jul 2006 14:59 GMT
Hi,

I have a Control Library which shows a Form, and i would like to hev the
icon of the CallingAssembly to be shown on this Form. Does anybody knows how
to do this? I can't be able to get this Icon...
Even worse, I don't find how to get it in the application itself :-)

Does anybody has any hints,

Thansk a lot in advance,

Pieter
M. Posseth - 11 Jul 2006 08:11 GMT

           If Me.Owner Is Nothing Then
'set optionally your own icon
           Else
'set icon from the owner
               Me.Icon = Me.Owner.Icon

           End If

Michel Posseth [MCP]

> Hi,
>
[quoted text clipped - 8 lines]
>
> Pieter
Pieter - 11 Jul 2006 10:08 GMT
Hi,

Thanks for the answer, but it doesn't work. Me.Owner is for the parent Form,
not for the parent assembly..
It's the Application Icon that I need of the application that is calling the
Control Library...
M. Posseth - 11 Jul 2006 13:58 GMT
Aha ,,, hmmm

well then try

Me.Icon = Drawing.Icon.ExtractAssociatedIcon("path to assembly")

regards

Michel Posseth [MCP]

> Hi,
>
> Thanks for the answer, but it doesn't work. Me.Owner is for the parent Form,
> not for the parent assembly..
> It's the Application Icon that I need of the application that is calling the
> Control Library...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.