Image Path

What is the path that I should use if I have a bmp that I want to load in a picture box?

pbScreenGraphic.Image = new Bitmap(“/HOME/Idle.bmp”);

thanks!

Shane

You can use the TpsResourceManager to load the image. This class has a method called GetImage, which will load the file from you,

TpsResourceManager tpRM = TpsResourceManager();
pbScreenGraphic.Image = tpRM.GetImage(“Idle.bmp”); ← if possible, change this to JPG

The image file Idle.bmp should be in the system’s home folder. After the FlexPendant restarts, all images located in this folder will be copied into the FlexPendant, from where the TpsResourceManager loads them.

Hope this helps

Carlos,
You are always there to help!

Thanks

Why can’t I add the resource ABB.Robotics.TAF.Base? Am I missing something?

Shane

what do you mean … adding this assembly as a reference to your project?

Yes… Man I am feeling a little stupid here, sorry. How do I add the reference. I thought it was

using ABB.Robotics.TAF.Base;

But it says I need to use version 5.11.11 or something like that.

Shane

Never mind!!! I remember now.

Sorry it has been a few months.
Shane