You are not logged in.

david4616

Beginner

  • "david4616" started this thread

Posts: 1

Date of registration: May 2nd 2012

  • Send private message

1

Thursday, May 3rd 2012, 2:33pm

Pb with color

Hi everyone,

Hi, i am a very new user .. just started 2 day ago and i can't find how to change color on a shape for example by coding



example : Shape4.BackColor= ?(



why kind of color code i have to put .. name of the color , hex ???

Thanks for any advice

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Thursday, May 3rd 2012, 11:53pm

There are a lot of possibilities to do it.
If you want to create a red border, you can write

Jabaco Source

1
Shape4.BorderColor = RGB(255, 0, 0)
or

Jabaco Source

1
Shape4.BorderColor = &Hff
or

Jabaco Source

1
Shape4.BorderColor = &H0000ff
or

Jabaco Source

1
Shape4.BorderColor = 255
or

Jabaco Source

1
Shape4.BorderColor = ColorToRGB(Color.red)
or

Jabaco Source

1
Shape4.BorderColor = ColorToRGB(New Color(255, 0, 0))


:!: If you want to change the BackColor of an Shape, be sure, that you have set the BackStyle to vbSolid before. :!:

Greatings
theuserbl

Rate this thread
WoltLab Burning Board