Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

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.

Thanks!
Fred
0
meyefr
Asked:
meyefr
  • 2
1 Solution
 
Richie_SimonettiCommented:
You could use drawframe api but image control is a windowless control so no hwnd to pass values.
0
 
Richie_SimonettiCommented:
Optionally, you could use a shape control around it setting border style of image control to 0.
0
 
DanRollinsCommented:
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
0
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now