Hello all, How can I call up a color pallet in VB and is it easy to use?
Like the attached file maybe? Remember to reference the common dialog control.
http://www.rickbull.co.uk/ Help get full alpha-transparency in Internet Explorer
The link above no longer works. How do you add the color pallet to VB6?
Welcome to the forums. Use the .ShowColor method of the CommonDialog control VB Code: Private Sub cmdShowColor_Click CommonDialog1.ShowColor End Sub You will need, of course, to add a common dialog control to the form you want to run this on.
Private Sub cmdShowColor_Click CommonDialog1.ShowColor End Sub
Have you noticed that this thread is 4 years old? Try this to actually retrieve the color: VB Code: On Error GoTo ErrorHandeler Dim someColor As Long With CommonDialog1 .CancelError = True .ShowColor someColor = .Color Me.BackColor = someColor End With Exit Sub ErrorHandeler:
On Error GoTo ErrorHandeler Dim someColor As Long With CommonDialog1 .CancelError = True .ShowColor someColor = .Color Me.BackColor = someColor End With Exit Sub ErrorHandeler:
Use [CODE] tags and rate useful posts VB: MSDN VBnet DevX vbAccelerator DB: W3Schools SQL TechOnTheNet's Oracle/PLSQL ConnectionStrings Misc (IT): Use XP look (manifest) in your apps (sample) MZ-Tools (free and cool VB add-in) Deploy your apps with Inno Setup Misc: Zeitgeist Movie ... so make the best of this test and don't ask why, it's not a question, but a lesson learned in time...
Forum Rules