473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How do I access ComboBox.SelectedText from another thread?

Hello all,

I have been pulling my hair out trying to figure out how to access the
selected text in a combobox from another thread. I can get it working
with a textbox but it does not with a combobox. Could someone be so
kind as to show me an example of how this is accomplished? Many thanks
in advance.
Dec 22 '07 #1
3 2197


Paulers wrote:
Hello all,

I have been pulling my hair out trying to figure out how to access the
selected text in a combobox from another thread. I can get it working
with a textbox but it does not with a combobox. Could someone be so
kind as to show me an example of how this is accomplished? Many thanks
in advance.
So, what are you doing with the textbox? Are you invoking a method to
return the selected text, or are you trying to access directly? Can
you be a little more specific about what doesn't work? A short code
snip-it would be helpful.

--
Tom Shelton
Dec 22 '07 #2
Tom,

I am also very curious about that code, how to set a combobox with data that
is assynchroon processed and still accoording the users interface actions.

I realy hope to see that code.

I assume that you asks this more polite then I mostly do as it is about
this, however have that same feeling and that we then probably come with the
same answers.

:-)

Cor

"Tom Shelton" <to*********@comcast.netschreef in bericht
news:d6**********************************@d21g2000 prf.googlegroups.com...
>

Paulers wrote:
>Hello all,

I have been pulling my hair out trying to figure out how to access the
selected text in a combobox from another thread. I can get it working
with a textbox but it does not with a combobox. Could someone be so
kind as to show me an example of how this is accomplished? Many thanks
in advance.

So, what are you doing with the textbox? Are you invoking a method to
return the selected text, or are you trying to access directly? Can
you be a little more specific about what doesn't work? A short code
snip-it would be helpful.

--
Tom Shelton
Dec 22 '07 #3
Paulers,

The problem is that in this kind of processing you can only keep one thing
open.
That is the close box. All other things have to wait until the processing is
done (most of the time is this not even recognisable by this kind of
database processing). It goes that fast that as soon as the user has reached
the point he want to select, then the processing is already done.

What is in your case what the user can do in between of those processes?

(I know that the sample is often used, however in my idea more to show it
then that it has any practical benefit).

It is something else of course when you are loading a very large solution,
however in many cases you have as well to wait until it is complete ready,
you cannot stop that then only with the taskmanager. A sample of that is
Visual Studio. The price that is paid in processing time in normal
situations is probably to high.

In other words don't expect that multi threading is a solution for
everything it is in the oposite, there are very few situations were you can
use it. (To be honest in data processing I don't know one).

Cor

Dec 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Programatix | last post by:
Hi, I'm having problem with ComboBox. I'm trying to force the ComboBox select nothing by doing this, myCombo.SelectedText = "" myCombo.SelectedIndex = -1 but in vain, as the ComboBox will...
2
by: Prabhat | last post by:
Hi all, I have one combobox where I want to display Name of the Products that are loaded in the collection object. But I am able to send only ID and Name of the Product where ID is the value of...
4
by: reidarT | last post by:
I want to get the text from a bound combobox in a variable I try to use strVar = me.cboName.SelectedText.Tostring, but it doesn't work. reidarT
5
by: jmDesktop | last post by:
I know this should be straight forward, but I have not gotten it yet. I have a combobox and a textbox. I want to display what is selected in the combobox in the textbox. I have: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.