How to expand combo box on focus event?

Private Sub cmbElectLoadPS_gotfocus(ByVal sender As Object, ByVal e As System. EventArgs) Handles cmbElectLoadPS. GotFocus if Not cmbElectLoadPS.

DroppedDown Then cmbElectLoadPS. DroppedDown = True End If End Sub If you need this behavior for all your combo controls is better to create your own implementation Pulic Class CustomComboBox Inherits ComboBox Protected Overrides Sub OnEnter(ByVal e As System. EventArgs) if Not DroppedDown Then DroppedDown = True End If End Sub End Class.

Oh .. add the same value to ComboBox on Mouseup event.. it would do the trick for you :) sthing like : private void comboBox1_Enter(object sender, EventArgs e) { comboBox1. DroppedDown = true; } private void comboBox1_MouseUp(object sender, MouseEventArgs e) { comboBox1. DroppedDown = true; } Not your best solution.. but it would do the trick :).

Its working, but as you said, not the best soln as its showing twice. Is there any better way? – Myth Dec 21 '09 at 6:54.

Create a timer called tmrDropDown (you should create a timer for each ComboBox) and leave its default properties. Add this code: Private Sub cmbBox_GotFocus(ByVal sender As Object, ByVal e As System. EventArgs) Handles cmbBox.

GotFocus tmrDropDown. Enabled = True End Sub And Private Sub tmrDropDown_Tick(ByVal sender As System. Object, ByVal e As System.

EventArgs) Handles tmrDropDown. Tick cmbBox. DroppedDown = True tmrDropDown.

Enabled = False End Sub.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions