﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Cross-thread operation not valid</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 06:17:10 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Cross-thread operation not valid</title><link>http://forum.strataframe.net/FindPost19601.aspx</link><description>Thanks Dustin,&lt;br&gt;
&lt;br&gt;
FYI, I tried adding InvokeRequired() check and BeginInvoke call to the menu onClick event, but that didn't seem to make a difference. I hope you have better luck with it.&lt;br&gt;
I have a feeling the problem has to do with Context menu being created on UI thread and accessed on the InfoBox thread. It'd be interesting to know why it works in VB.NET and not in C#, please let me know how it turns out.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks.</description><pubDate>Mon, 22 Sep 2008 15:53:16 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>Cross-thread operation not valid</title><link>http://forum.strataframe.net/FindPost19573.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
I am implementing clickable context menu with InfoBox. I am getting an error in Dispose when form is being closed after a user clicked on the context menu item. The error is "Cross-thread operation not valid: Control 'cmNotification' accessed from a thread other than the thread it was created on."&lt;br&gt;
&lt;br&gt;
It's also happening in StrataFrame UI Control sample. But the strangest thing is that it happens in C# version of the sample only, I tired VB.NET version and it's working there :doze: ?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 22 Sep 2008 15:53:16 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Cross-thread operation not valid</title><link>http://forum.strataframe.net/FindPost19580.aspx</link><description>Howdy Leonard :),&lt;/P&gt;&lt;P&gt;Yep, I was able to reproduce that error in the StrataFrame UI sample, so I will definately add it to the list of things to look at. That particular sample is getting a little long in the tooth, so I'm not sure whether the issue is with the implimentation or with the underlying source, but we'll look into it and let you know.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 22 Sep 2008 09:12:43 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>