I did not show the whole code as all I was asking is HOW you write a variable as the property of XBrushes, as it only accepts the name of the color property. i.e. Black
The color combo is bound into the combobox with the following set:
Display member: Color
Value Member: XID
The following code is run to select the color in the combo box:
So the question I am asking is how do I represent the color for the XBrushes property instead of a color?Code:Private Sub cboColor_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboColor.SelectedIndexChanged Me.TxtColorTableAdapter.Fill(Me.ColorDataSet.TxtColor) Dim TxtColorValue As Integer Dim cboColor As Object = Nothing TxtColorValue = cboColor.selectedvalue End Sub
I have another problem at the moment in the Application Designer.vb which I will post separately.




Reply With Quote
