Grasshopper

algorithmic modeling for Rhino

Hi all,

 

I have just started to make new components with Visual Studio. I'm following the very useful GrasshopperSDK Help and now I would like to include an icon in the toolbar.

How could I do it?

Any help?

 

Thanks in advance,

 

regards,

Views: 1645

Attachments:

Replies to This Discussion

hi Ramon,

First add your icon file to the Ressources  of your VS project( just drag and drop to the Ressource Window) - I think your file has to be 24x24px

then add this line to you code:

protected override System.Drawing.Bitmap Icon { get { return Properties.Resources.MyIcon; } }

 

Thanks!

 

but I'm afraid I did not understand the line...

I've added the icons to the project, but the line you wrote seems C#...do you know how does it code in VB?

 

regards,

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service