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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings