I have created a com dll in c# that includes events. I have referenced it in my windows form application and
can call the exposed methods and get the results I expect without a problem. The issue is with events.
The dll runs a thread that checks a website for updated information .. it will raise an event when the
information has changed. I have included the event in my windows form and the event is raised correctly,
but when I try to update the textbox on the form I'm getting a cross thread exception:
protected void OnStateChanged(string eventData)
// this part works perfectly!
System.Diagnostics.Debug.WriteLine("eventdata: " + eventData);
// this line throws the cross-thread error.
textBox1.text = eventData;
how can I get around this? (I am using vs2012 and .net 4.5)
Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
Extention Methods in C# 3.0
by Ivo Stoykov
C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance.
These are static methods invoked as instance method. This…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …