In combobox option when the mouse moves, the preview effect on the right side, namely the move into that option is to show that, when clicking on the selected, will display the selected pictures,
What kind of events in the combobox?
CodePudding user response:
Recognize a way that can give a?CodePudding user response:
I can think of is, click on the drop-down box after open a thread regularly, real-time access to current mouse coordinates, if in a box which box is displayed in the picture, but I don't know what form to achieve preview page, unless you customize a, small white an idea so pointCodePudding user response:
You should use SelectedIndexChangedExample:
Private Sub ComboBox1_SelectedIndexChanged (sender As Object, As EventArgs e) Handles ComboBox1. SelectedIndexChanged
Dim nCombo As ComboBox=sender
PictureBox1. Image=New Bitmap (nCombo. SelectedItem. ToString) 'hypothesis nCombo SelectedItem="aa. BMP
"End Sub
CodePudding user response:
The mouse movement in the drop-down list, choose rather than directly, if the mouse in the drop-down list to select a click, this I will now need to move the mouse in the drop-down list items, from a move to another can trigger,CodePudding user response: