Solved

How do I change the border color of an image?

Posted on 2002-04-19
4
142 Views
Last Modified: 2010-05-02
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
Comment
Question by:meyefr
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 100 total points
ID: 6953601
You could use drawframe api but image control is a windowless control so no hwnd to pass values.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6953610
Optionally, you could use a shape control around it setting border style of image control to 0.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660554
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
 

Expert Comment

by:SpideyMod
ID: 7755164
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question