PC Review


Reply
Thread Tools Rate Thread

Combobox scroll issue

 
 
Denny
Guest
Posts: n/a
 
      17th Feb 2010
Hi,
I have an issue which is relatively in all the comboboxes I'm using in my
application. I'm using .net CF 3.5 on windows mobile 5, the device is an ipaq
hx2790b.

My combobox is loaded from a dataset, using the combobox.Items.Add, method
and then the selectedindex is seto to 0, everything works fine until I
started scrolling the combobox. This issue is very random(it dosent occur
always ,but quite often).
If i press the upper arrow control on the dropdown some times the cotrol
stays in the pressed state even after I stopped tapping, and the list end up
scrolling to the start, same happens with the bottom arrow.
Sometimes if I pressed the arrrows and release it, it scrolls the list till
i press the button, and automatically scrolls back to shere it was previous,
instead of staying at the position where I left the thumb.

Please help me to fix this , since it becomes an issue for my client.

here is a snippet of code which does the filling of the combo
datarow = MyApp.fs.m_Db.GetDataSubSet("Positions", "User='" +
MyApp.fs.m_user + "'", "PositionDesc ASC", false);
if ((datarow != null) && (datarow.Length != 0))
{
foreach (DataRow r in datarow)
{
String posDesc = r["PositionDesc"].ToString();
posDesc = posDesc.Trim();
if (posDesc.Length != 0)
{
if
(cmbWrkInfoPositionID.Items.Contains(posDesc) == false)
{

cmbWrkInfoPositionID.Items.Add(r["PositionDesc"].ToString());
cmbWrkInfoPositionID.SelectedIndex = 0;
}
}

}
//add an empty record to the end to exclude position
selection
cmbWrkInfoPositionID.Items.Add("");
}
else
{
cmbWrkInfoPositionID.Enabled = false;
}
I set the style of the combobox as dropdownlist

Thanks
Denny

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox scroll =?Utf-8?B?UGhpbA==?= Microsoft Access Forms 2 29th Apr 2006 06:01 AM
combobox with out scroll bars gregory.hickmott Microsoft Access Forms 2 2nd Apr 2006 10:13 PM
use of scroll wheel in combobox =?Utf-8?B?RXhjZWxlcmF0ZS1ubA==?= Microsoft Excel Programming 3 16th Mar 2006 11:26 PM
Excel ComboBox mouse scroll Rory Microsoft Excel Programming 2 7th Jun 2004 12:51 PM
Scroll Combobox with MouseWheel Rob Microsoft Excel Programming 0 15th Jan 2004 12:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:49 AM.