How to make add-ins for sidebar

This is a seperate project based on the sidebar from CnS Desktop. Its standalone and any sidebar addins made for desktop will also function in this sidebar.
2 posts Page 1 of 1
Contributors
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

How to make add-ins for sidebar
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;
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Nice One Codenstuff :)
:) :)
Chris
Image
2 posts Page 1 of 1
Return to “CnS SideBar”