Solved

Cursor stuck in Combobox

Posted on 2004-09-13
7
365 Views
Last Modified: 2012-08-13
I have a combobox on a windows form.  The combobox is not a required field so it can be left blank.  However, when the user focuses on the combobox, it will not release the cursor and allow the user to select any of the other controls on the page until they select an item from the dropdown menu.  Is this by design?  If so, it stinks and I need a way around it.  Any help is gratefully appreciated.

Matt
0
Comment
Question by:mglace390
  • 3
  • 2
7 Comments
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12044829
how about add a blank as an item into the combobox
you can see many similar design in internet
0
 
LVL 2

Author Comment

by:mglace390
ID: 12045080
That is a possible solution however it sounds like a workaround to me.  Is this a bug?  Why is the same thing not happening to the other combo boxes on the form?  Could it have to do with the way it is populated?  The combo I populate using the DataSource property acts as it should and the combo that is causing the error above is populated using the AddRange method.
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12045139
do you use databinding?
whether the combobox binding value is not allow null value?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Author Comment

by:mglace390
ID: 12046853
I do use databinding and I bind the SelectedItem to a string column of a datatable.  The column I'm binding to is nillable therefore I should be able to leave the combobox blank.  Is this what you are referring to?
0
 
LVL 2

Author Comment

by:mglace390
ID: 12047154
I solved the problem by taking out the databinding all together.  I simply set the combo box's SelectedItem property to the value of the field in the DataRow in the constructor and vise versa in the form closing event.  Works exactly how I want it to.  Thank you for your help anyway.

Matt
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12269833
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now