selecting an item in a listbox

Joined
Feb 14, 2007
Messages
2
Reaction score
0
I'm wondering whether there is a way to (programatically) select (set selection) an item from a listbox in .net Compact Framework programming with C#. In general this is a very basic requirement. 'listbox.SetSelected' method is not available for .net CF. Is there any other way (work around) to achive this. If not does somebody know why this bare minimum functionality is not supported in .net CF.

Thanks.
Athma.
 
Joined
Feb 14, 2007
Messages
2
Reaction score
0
Well now I know how this can be done. I have to assign the desired index to the 'listbox.SelectedIndex' property. Accessing a property (data member) directly is rather unusual for a C++ programmer since most of the members of the class used to be private and we have public functions (methods) to access its value.


Anyways Now I know in C# (ofcourse Compact Framework) what are the other stuff I should look for before posting a query.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top