How to get all colors form the colors-structure

  • Thread starter Thread starter Malleier Alfred
  • Start date Start date
M

Malleier Alfred

Hi,

is it possible to get a collection of all colors of the
system.drawing.color-structure?
I want to make a Color-Chooser-Control like the one in
VB.Net-properties-dialog. How to know dynamically witch colors to fill in?

And how can I know, if my program is in design-mode or in runtime-mode?

regards, Alfred M.
 
Hello,

Malleier Alfred said:
is it possible to get a collection of all colors of the
system.drawing.color-structure?

\\\
Dim ColorList As New ArrayList()
ColorList.AddRange([Enum].GetNames(GetType(KnownColor)))
///
And how can I know, if my program is in design-mode or in
runtime-mode?

\\\
If Me.DesignMode Then
...
End If
///

HTH,
Herfried K. Wagner
 
Back
Top