F
foldface
Hi
I am doing drag and drop between controls (listview and
treeview) using mouse_event.
What I am after is a book/resource to explain the behaviour
below.
If I do the various Win32 api calls and call Application.Run, it
works. I can see dragging and dropping on the screen.
If I do this:
while(true)
{
Application.DoEvents()
}
it works, while if I do this:
while(true)
{
FormFinder finder = new FormFinder();
FormCollection theForms = finder.FindAll("Employee Transfers");
if(theForms.Count > 0) break;
Application.DoEvents()
}
it doesn't work. The code is NUintForms b.t.w.
Its almost as if theres a timing issue involved, you have to be looking
at the queue at the right minute?
Any advice?
Thanks
F
I am doing drag and drop between controls (listview and
treeview) using mouse_event.
What I am after is a book/resource to explain the behaviour
below.
If I do the various Win32 api calls and call Application.Run, it
works. I can see dragging and dropping on the screen.
If I do this:
while(true)
{
Application.DoEvents()
}
it works, while if I do this:
while(true)
{
FormFinder finder = new FormFinder();
FormCollection theForms = finder.FindAll("Employee Transfers");
if(theForms.Count > 0) break;
Application.DoEvents()
}
it doesn't work. The code is NUintForms b.t.w.
Its almost as if theres a timing issue involved, you have to be looking
at the queue at the right minute?
Any advice?
Thanks
F