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 / Visual Studio.NET / Extensibility / February 2005

Tip: Looking for answers? Try searching our database.

AboutBoxIcon, how do I change?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WALDO - 31 Jan 2005 18:09 GMT
When you go through the wizard to create an add-in for VS.Net, you get the
option of including an AboutBoxIcon, and it says that you can chanfe it
later. I have located the area in the registry where this is stored. I just
want some info about updating it.

Is it just the binary values (byte array) of a .ico file saved on the disk?
If I look at the .reg file that was created by the wizard so I could recrate
my add-in state, it looks like some hex values. is this just the hex values
of the byte array? Is it base64-encoded text?

If that's the case, then can I simply create a .ico file and just read it
into a byte array and persist it to the registry?

Thanks in advance.
WALDO
Carlos J. Quintero [.NET MVP] - 01 Feb 2005 13:31 GMT
The AboutBoxIcon can store icon information in 4 ways:

-  "#<resource ID>": in this case, you specify an icon of the satellite DLL
of the add-in.
- "<path_to_icon_file>": a path to a file with the icon
- "<path_to_exe_file>,<resource ID>"a path to an executable with the icon
- the binary data of the icon directly, in the form of an array of bytes.

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

> When you go through the wizard to create an add-in for VS.Net, you get the
> option of including an AboutBoxIcon, and it says that you can chanfe it
[quoted text clipped - 15 lines]
> Thanks in advance.
> WALDO
WALDO - 01 Feb 2005 14:52 GMT
Wow. I didn't know all that.
What .Net classes can I use to read win32 resources out of a binary file. I
did see one add-in in my registry that had values for the friendly name as
#106. I figured it must be embedded in the satellite dll as a win32
resource, but hadn't confirmed it. I figure I'll just use regular
expressions to figure out which type they are.

if registry entry is string type then
   ^\#\d+$    - win32 resource in satellite dll
   ^.*?(\.(exe|dll))\,\d+$    - win32 in binary
   ^.*?\.ico$    - icon file
else if registry entry is byte array (binary) then
   read into byte array
   write to memory stream
   create icon from stream
end if

> The AboutBoxIcon can store icon information in 4 ways:
>
[quoted text clipped - 23 lines]
> > Thanks in advance.
> > WALDO
Peter Macej - 02 Feb 2005 10:34 GMT
> The AboutBoxIcon can store icon information in 4 ways:
>
> -  "#<resource ID>": in this case, you specify an icon of the satellite DLL
> of the add-in.
> - "<path_to_icon_file>": a path to a file with the icon
> - "<path_to_exe_file>,<resource ID>"a path to an executable with the icon

Does it really work? I tried <path_to_icon_file>, no success. I found
that for example AnkhSVN addin uses <path_to_exe_file>,<resource ID>
approach but it also shows no icon. I tried it with both VS 2002 and VS
2003. Only binary array works for me.

Signature

Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
.NET and ASP .NET code

Carlos J. Quintero [.NET MVP] - 02 Feb 2005 18:57 GMT
I don´t know, I read it on the book "Inside Microsoft Visual Studio .NET
2003"...
Signature


Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

>> The AboutBoxIcon can store icon information in 4 ways:
>>
[quoted text clipped - 7 lines]
> but it also shows no icon. I tried it with both VS 2002 and VS 2003. Only
> binary array works for me.

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.