Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with shapes!!! BorderWidth?

Status
Not open for further replies.

KidforChrist

Programmer
Feb 8, 2005
5
US
I'm having trouble with the shape controle. How do I change the border width? Or the color?
 
Code:
myshape.BorderWidth = 2
myshape.BorderColor = #ff0000


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
You can also change border color as follow

Shape1.BorderColor=vbRed

[2thumbsup]
 
>myshape.BorderColor = #ff0000

That probably won't work in VB ...
 
You're probably right. That's what I get for mixing up my languages again. At least I know the attributes are correct - I looked them up to make sure.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
If I had looked at the attribute VALUE instead of just the attribute name I would have posted it correctly! [blush]

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thanks everyone. I used the top method to change the width and it told me BorderWidth was not a correct atribute. I have sence then got it to do what I want but now I keep getting told that the Value property of a checkbox doesn't exist. ???
 
Well, that's sort of a new thread, but quickly, the checkbox has 3 values, vbChecked=1, vbUnchecked=0 and vbGrayed=2 (I think it spells it with an a not an e). A lot of confusion happens from thinking of a checkbox as true if checked and false if not.

If you have further trouble with this, I suggest that you post your code in a new thread.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top