473,405 Members | 2,294 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,405 software developers and data experts.

controls create on one thread cannot be parented to a control on different threa

Hi

I have one application in VB.NET using the concept of
mutithreading.In that application when we click on one
button some will be displayed by the threads in the
listbox.Actually i downloaded this code,Now i want to
change that data into datagrid.But while i am trying to
display data in datagrid it gives error like "controls
create on one thread cannot be parented to a control on
different thread".How can i shift my data from listbox to
datagrid.If any one knows please let me know thanks in
advance.

Mamatha
Nov 21 '05 #1
1 2841
http://support.microsoft.com/default...b;en-us;318604

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Mamatha" <ma***********@yahoo.com> wrote in message
news:08****************************@phx.gbl...
Hi

I have one application in VB.NET using the concept of
mutithreading.In that application when we click on one
button some will be displayed by the threads in the
listbox.Actually i downloaded this code,Now i want to
change that data into datagrid.But while i am trying to
display data in datagrid it gives error like "controls
created on one thread cannot be parented to a control on
different thread".How can i shift my data from listbox to
datagrid.If any one knows please let me know thanks in
advance.

Mamatha

Nov 21 '05 #2

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

Similar topics

2
by: avivgur | last post by:
Hello, I am writing a program in Visual C# and I have encountered a problem. In my program I want to dynamically create a multitude of controls (thousands) on a form. The problem is that calling...
10
by: jaire | last post by:
In my application I have two threads. Each of them creates a new propertygrid. In the property grid I have a property with a color editor. Whenever i am clicking on the combo box to change the...
1
by: VMI | last post by:
Im using a separate thread in my code to copy a huge file, but I get the "Controls created on one thread cannot be parented to a control on a different thread" when I want to update the Form...
3
by: Arthur Dzhelali | last post by:
I am trying dynamically create controls and add them to the form on the Separate thread. I know that I have to use delegate in order to update preexisting controls on the form, but when I ma...
2
by: Olaf Rabbachin | last post by:
Hi folks, I have a form in which I'm starting a separate thread (which is searching directories for image-files and generating thumbnails of them in different dir). Within the form, I also have...
1
by: pmclinn | last post by:
What is the best way to re-write this code to avoid the 'Controls created on one thread cannot be parented to a control on a different thread.' error? Private Sub SendCMTStoCore(ByVal Cmts As...
5
by: RWF | last post by:
I have a form, and from the form when a user clicks a button, it instantiates control that will be doing a lot of logic. I am trying to use System.Threading.ThreadPool.QueueUserWorkItem to spawn a...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: CharChabil | last post by:
Hello Guys, I am trying to mark locations on a map (x,y pixels are derived from a DB) This is the code that i am using Private Sub DisplayOnSoftMap() SqlQuey = "Select * FROM SoftwareMap WHERE...
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: 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?
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.