How do I change the border color of an image?

How do I change the border color of an Image control from black to gray.

The default black border is set when the "BorderStyle" property is set to "1-Fixed Single".

I am looking for an API call or something equivalent. I know I can simply draw a box around the image using the "Line" command, but I run into ZOrder problems when doing this.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Richie_SimonettiConnect With a Mentor IT OperationsCommented:
You could use drawframe api but image control is a windowless control so no hwnd to pass values.
Richie_SimonettiIT OperationsCommented:
Optionally, you could use a shape control around it setting border style of image control to 0.
Hi meyefr,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Richie_Simonetti's comment(s) as an answer.

meyefr, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
DanRollins -- EE database cleanup volunteer
per recommendation

Community Support Moderator @Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.