• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2025 Replies
  • 331 Replies
    1928 Replies

How to make add-ins for sidebar

User avatar
CodenStuff
Site Admin
Posts: 4373

How to make add-ins for sidebar

Sun Aug 22, 2010 4:10 pm

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
Posts: 2870

Re: How to make add-ins for sidebar

Sun Aug 22, 2010 4:13 pm

Nice One Codenstuff :)
:) :)
Chris
Image

Post Reply

Return to “CnS SideBar”