O
ohmmega
since its common knowledge that it's not possible to hide a tabcontrol
tab, i made a collection for removed pages including their
tabcontrols. removing works pretty fine, but whenever i try to add a
page (timer triggered) i get stuck:
System.ArgumentException
the message is like: controls, created for a thread cannot
superordinate controls from another thread.
*outch*
i hope i made just a small mistake - so anything usefull?
regards
rené
ps: some code:
<code>
foreach(cControlInfo myControlInfo in myContainer.removedControls)
{
if (!
myControlInfo.controlParent.Controls.Contains(myControlInfo.controlChild))
{
myControlInfo.controlParent.Controls.Add(myControlInfo.controlChild);
}
}
</code>
tab, i made a collection for removed pages including their
tabcontrols. removing works pretty fine, but whenever i try to add a
page (timer triggered) i get stuck:
System.ArgumentException
the message is like: controls, created for a thread cannot
superordinate controls from another thread.
*outch*
i hope i made just a small mistake - so anything usefull?
regards
rené
ps: some code:
<code>
foreach(cControlInfo myControlInfo in myContainer.removedControls)
{
if (!
myControlInfo.controlParent.Controls.Contains(myControlInfo.controlChild))
{
myControlInfo.controlParent.Controls.Add(myControlInfo.controlChild);
}
}
</code>