RobotStudio event

Add Image in my CommandBarButton

Options

Hello
in my add-in, I'd like to  include an image in my button. I'm using this code but  an  exception is returned . What is wrong?  
 
buttonPathCreator.LargeImage =System.Drawing.
Image.FromFile(@C:dataRobotStudioVSTAProjectsPathCreatorPathCreatorinReleasePathCreator.PNG);
(also tried )

buttonPathCreator.LargeImage =System.Drawing.Image.FromFile("C:\data\RobotStudio\VSTA\Projects\PathCreator\PathCreator\PathCreator.PNG");

 

Thanks

Oscar
BR
Oscar Ferrrato

Comments

  • carlosmtz2000
    Options

    Hi,

    1. Remove the path of the file and leave only the file name (with extension)

    2. Copy the file to the home folder of the system. The FlexPendant will look for the file in that folder.

     

    BR

     
    Carlos Martinez
    ABB
  • carlosmtz2000
    Options

    I am sorry ... this question was under the context of the FlexPendant, not RobotStudio.

    Which exception are you getting?
    Carlos Martinez
    ABB