Add Image in my CommandBarButton
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings