I understand that multi-threaded WinForms apps are required to use Control.Invoke or Control.BeginInvoke when accessing a control from a thread other than the UI thread.
But does this rule also apply when manipulating objects that are contained within a control but which do not derive from the Control base class?
For example, when usin...
I am trying to display some information on a grid queried from a sql server. The data gathering can take about 10 seconds so I don't want to lock the UI thread.
I currently have code like:
ThreadPool.QueueUserWorkItem(DataUpdateThread, new UpdateParams(year));
private struct UpdateParams
{
internal string year;
internal Upd...
using System;
using System.Windows.Forms;
using agsXMPP;
using System.Text;
namespace iTalk2
{
public partial class Main : Form
{
agsXMPP.XmppClientConnection objXmpp;
public Main()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
...
Hi all,
I am designing a form in which I have to increase a Progress bar while an operation is being performed simultainously (In other words, I am showing progress of this operation).
This operation takes 50seconds. So I have used a System.Timer Timer to Increase the Progress bar.
There isn't a single thread in my code. When I writ...
Hi everyone
I was wondering, how does pthreads-win32 (windows implementation of pthreads) implement cross-threading? Is it written exclusively with windows API? I checked some of the sources and it seems that most is indeed written with windows API, tho i was wondering if it uses windows scheduler to switch between threads (and cores) a...