Class
WebColorPicker
Color Picker
ColorPicker
Description
Displays a color picker.
Properties
Name |
Type |
Read-Only |
Shared |
|---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
|---|---|---|---|
initialColor As Color, left As Integer = 0, top As Integer = 0 |
|||
initialColor As Color, prompt As String, left As Integer = 0, top As Integer = 0 |
|||
initialColor As Color, prompt As String, parentControl As WebUIControl |
|||
initialColor As Color, parentControl As WebUIControl |
Events
Name |
Parameters |
Returns |
|---|---|---|
selectedColor As Color |
||
Property descriptions
WebColorPicker.HasAlpha
HasAlpha As Boolean
Method descriptions
WebColorPicker.Hide
Hide
Hides the color picker.
WebColorPicker.Show
Show(initialColor As Color, left As Integer = 0, top As Integer = 0)
Displays the color picker using the color and location passed.
Show(initialColor As Color, prompt As String, left As Integer = 0, top As Integer = 0)
Displays the color picker using the color, prompt and location passed.
Show(initialColor As Color, prompt As String, parentControl As WebUIControl)
Displays the color picker using the color, prompt and parent control passed.
Show(initialColor As Color, parentControl As WebUIControl)
Displays the color picker using the color and parent control passed.
Event descriptions
WebColorPicker.ColorSelected
ColorSelected(selectedColor As Color)
The user selected the color passed.
WebColorPicker.Dismissed
Dismissed
Called when the color picker is dismissed by calling its Hide or Close methods.
WebColorPicker.Shown
Shown
The control has appeared on the currently displayed page. This could be because its parent page just finished loading, its parent page has come to the foreground or the control is now visible having been previously invisible because it or its parent control's Visible property has been set to True.
Use the Shown event for initializing your controls or doing anything that would interact with other controls or user interface elements on the web page instead of the Opening event.
Note
This event is the web equivalent to the DesktopWindow.Activated event.
Sample code
Compatibility
Project Types |
Web |
Operating Systems |
All |
See also
WebControl parent class; DesktopColorPicker and MobileColorPicker classes.