Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings