Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invisible Mouse pointer...

Status
Not open for further replies.

greaver

Programmer
Apr 29, 2002
31
CA
Hi Guys,

I'm creating a user control with a combobox that drops a list of choices as soon as a key is pressed in the combobox text area. Here is the code snippet:

private void cmbAddressBar_keyPress(object sender, KeyPressEventArgs e)
{
cmbAddressBar.Items.Add("Blue");
cmbAddressBar.Items.Add("Green");
cmbAddressBar.Items.Add("Red");
cmbAddressBar.DroppedDown = true;
e.Handled = true;
}

However, once the list drops down the mouse becomes invisible. If I move the mouse off of the form, it reappears. If I move the mouse over the dropp down list, the selection bar tracks the mouse (although the mouse pointer remains invisible).

If anyone has any ideas, it would really be appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top