| | |
Add color palette to form
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Hi,
Add this Control to ur ToolBox:
"Microsoft Commom Dialog Control 6.0" to ur Project. Place the Control on the Form and rename it as "cdlg"
and use this Code:
Regards
Veena
Add this Control to ur ToolBox:
"Microsoft Commom Dialog Control 6.0" to ur Project. Place the Control on the Form and rename it as "cdlg"
and use this Code:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Command1_Click() Dim mycol cdlg.ShowColor mycol = cdlg.Color Me.BackColor = mycol End Sub
Regards
Veena
Hi,
U cannot Control the position of CommonDialog control. But there is an alternative, Place the common Dialog on a New Form, and Move the Form to Desired position on Screen and Show the Form.
Some thing like this : Add a Form And Rename it as frmColor:
Not very sure abt system colors...
Regards
Veena
U cannot Control the position of CommonDialog control. But there is an alternative, Place the common Dialog on a New Form, and Move the Form to Desired position on Screen and Show the Form.
Some thing like this : Add a Form And Rename it as frmColor:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim frmColor As New frmColor frmColor.Move 200,500 frmColor.cdlg.ShowColor
Not very sure abt system colors...
Regards
Veena
![]() |
Similar Threads
- Classic sql update question (ASP)
- Why color should be disabled ... (DaniWeb Community Feedback)
- Color palette (DaniWeb Community Feedback)
- add to combobox from listbox in another form (Visual Basic 4 / 5 / 6)
- changing the color of a HTML form selection (HTML and CSS)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: need help...
- Next Thread: Listview generates Devision by zero Error When reordering Columns
Views: 3220 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





