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

read Controles properties from other thread (problem)

I have the following structure :

public struct CA_structure
{
public int ModuleId;
//reference to TreeNode in tree view
public TreeNode ModuleTreeNode;
}

ArrayList listOf Modules //includes list of CA_structure
for example :
....
listOf Modules[0] = mCA_structure;

Now:
My application create Thread and run specific function which access this
list (listOf Module)
everything is OK except some of TreeNode properties,

mCA_structure = (CA_structure)listOf Modules[0];
here I have a problem the ModuleTreeNode.Name is OK but some of other
properties are not available and I get the following message for example in
ModuleTreeNode.Checked ->error : can not obtain value.

I tried to use invoke to receive the ArrayList but stile the same problem.

Any Idea please help

(Framework 1.1)
Nov 17 '05 #1
1 1253
"Error cannot obtain value" sounds like a debugger message.

Is there an Exception being thrown at runtime? If so, what is it?

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"[Yosi]" <Yo**@discussions.microsoft.com> wrote in message news:7A**********************************@microsof t.com...
I have the following structure :

public struct CA_structure
{
public int ModuleId;
//reference to TreeNode in tree view
public TreeNode ModuleTreeNode;
}

ArrayList listOf Modules //includes list of CA_structure
for example :
...
listOf Modules[0] = mCA_structure;

Now:
My application create Thread and run specific function which access this
list (listOf Module)
everything is OK except some of TreeNode properties,

mCA_structure = (CA_structure)listOf Modules[0];
here I have a problem the ModuleTreeNode.Name is OK but some of other
properties are not available and I get the following message for example in
ModuleTreeNode.Checked ->error : can not obtain value.

I tried to use invoke to receive the ArrayList but stile the same problem.

Any Idea please help

(Framework 1.1)

Nov 17 '05 #2

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

Similar topics

2
by: Rick Austin | last post by:
I recently had to perform a reinstalltion of Windows XP (my registry seems to have become corrupt). After this completed I had to reinstall all applications since most use the registry for settings,...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
4
by: Mantorok | last post by:
Hi I have an ASP app which references a few static properties in some of the classes. I understand that you should use Session variables, but is it "possible" to have each session "not"...
2
by: Carlos | last post by:
Me pasa lo siguiente: Instancio un formulario y cuando se dispara el evento resize redimensiono mis controles pero no se porque se me desplazan un poco abajo despues cuando redimensiono el...
1
by: Chris Dunaway | last post by:
I have a main process that will spawn several threads for processing. Before this happens, the main process creates an instance of a class that hold configuration data. This configuration data...
1
by: Christophe Peillet | last post by:
I have a CompositeControl with two types of properties: 1.) Mapped Properties that map directly to a child control's properties (ex.: this.TextboxText = m_txt.Text). These properties are handled...
5
by: Simon | last post by:
Hi all, We have an ASP.NET 1.1 application running on IIS6 on Server 2003. Most of the base objects we are using in this application are taken from a windows application also written by us. We...
3
by: cwertman | last post by:
I have a question regarding dynamic properties. I have an Object say Account --Id --Prefix --Fname --Lname --Suffix
0
by: Paya | last post by:
Hi, I am developing web application for our firm. I am using VS 2005 (ASP.NET and C#). For some reasons I have problem when I am launching application from IE 7. Basically Panels (which have bunch...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.