
Add Image in my CommandBarButton

oscar_f
✭
in RobotStudio
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
Oscar Ferrrato
0
Comments
-
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.BRCarlos Martinez
ABB0 -
I am sorry ... this question was under the context of the FlexPendant, not RobotStudio.
Which exception are you getting?Carlos Martinez
ABB0
Categories
- All Categories
- 5.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings