Hi..
I was working around 2 days to solve this problem!
I have combo box on the form which have the record from this code:
cboWorkCenter.Items.Clear()
Dim cmWC As New SqlCommand
Dim drItem As SqlDataReader
cmWC.CommandType = CommandType.Text
cmWC.Connection = cnFS
cmWC.CommandText = "SELECT ItemNumber FROM FS_Item"
cnFS.Open()
drItem = cmWC.ExecuteReader(CommandBehavior.CloseConnection)
Do While drItem.Read
cboWorkCenter.Items.Add(drItem.GetString(0))
Loop
cnFS.Close()
Me.Refresh()
I use data reader to populate record for my combo box.
the code was run normally but when I click to select the record, all record shows in white color and I cannot see the character. but when I click particular record (random), the record is selected and shows on Combo box.
I just re-install my PC but does not solve problem.
Please help!
thanks
ahnugroho
I was working around 2 days to solve this problem!
I have combo box on the form which have the record from this code:
cboWorkCenter.Items.Clear()
Dim cmWC As New SqlCommand
Dim drItem As SqlDataReader
cmWC.CommandType = CommandType.Text
cmWC.Connection = cnFS
cmWC.CommandText = "SELECT ItemNumber FROM FS_Item"
cnFS.Open()
drItem = cmWC.ExecuteReader(CommandBehavior.CloseConnection)
Do While drItem.Read
cboWorkCenter.Items.Add(drItem.GetString(0))
Loop
cnFS.Close()
Me.Refresh()
I use data reader to populate record for my combo box.
the code was run normally but when I click to select the record, all record shows in white color and I cannot see the character. but when I click particular record (random), the record is selected and shows on Combo box.
I just re-install my PC but does not solve problem.
Please help!
thanks
ahnugroho