Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Colordialog: wrong colors?

8 views
Skip to first unread message

Armin Zingler

unread,
Aug 31, 2002, 1:49:50 PM8/31/02
to
Hi,

at first, the code:

Dim ColorDialog As New ColorDialog()
Dim Color As Color

Color = Drawing.Color.FromArgb(0, 0, 0, 255)

ColorDialog.CustomColors() = _
New Integer() {lColor.ToArgb}
ColorDialog.ShowDialog()


The shown color is red but it should be blue.
Using
lColor = Drawing.Color.FromArgb(0, 255, 0, 0)
shows a blue color, although it should be red.

What do I do wrong?

Armin


ClayB [Syncfusion]

unread,
Sep 1, 2002, 6:23:36 AM9/1/02
to
The green works. :)

I see the same problem. It looks like maybe CustomColors has the bytes
flipped from the order returned by ToArgb.

==============
Clay Burch

Syncfusion, Inc.
Visit www.syncfusion.com to download a free trial of Essential Suite

"Armin Zingler" <willkein...@freenet.de> wrote in message
news:edSsTgRUCHA.1864@tkmsftngp12...

0 new messages