Create a form with one TextBox in it and use the code below. The "004F9F8B"
is the number from the 'Select a color' dialogue in my last post. (The one
in my last post shows "00000000")

Public Sub Form_Open()
Dim sMyColour As String = "0045279F" 
Dim sHex As String

sHex = "&H" & sMyColour & "&" 
TextBox1.Background = Val(sHex)

End



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Adding-custom-colors-tp52076p52119.html
Sent from the gambas-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to