Page 1 of 1

How to make add-ins for sidebar

Posted: Sun Aug 22, 2010 3:10 pm
by CodenStuff
Hello,

For those of you who are already familiar with the creation of add-ins for CnS Desktop you should have no problems creating them for the sidebar. The guide found here: viewtopic.php?f=107&t=1118&start=0 is valid for the sidebar so I wont repost the guide again.

Only a couple of settings are required for the sidebar so once you have the template loaded into VB please find this code in your Class.vb file:
Code: Select all
Private iLocation As String = "BarRight"
This needs to be changed to:
Code: Select all
Private iLocation As String = "SideBar"
We do that so CnS Desktop knows where to place tha add-in and because the Sidebar can only use add-ins created for use on the sidebar.

The next thing is is you wish to include a thumbnail preview of your sidebar add-in you first need to add the image to your projects resources and change its "Build Action" propertie to "Embedded Resource". Then you need to find this setting in your Class.vb file:
Code: Select all
Private iExtra2 As String = ""
You now need to change this to include the name of your thumbnail image file like this:
Code: Select all
Private iExtra2 As String = "Thumbnail.png" 
Then change the other settings like add-in name, description, creator, support url and then save/build your project and your finished. Just add the completed .dll file into your sidebar add-ins folder and you should now be able to add it to the sidebar cooll;

Please remember that because of the sidebars small size your add-ins should not be wider than 175 pixels in width.

You can download the blank template here which is pre-configured for sidebar add-in projects.

Download:
AddinBlankTemplateSidebar.zip
I look forward to seeing what you all come up with cooll;

Re: How to make add-ins for sidebar

Posted: Sun Aug 22, 2010 3:13 pm
by hungryhounduk
Nice One Codenstuff :)
:) :)
Chris