Threading and Callbacks

  • Thread starter Thread starter Zippy
  • Start date Start date
Z

Zippy

Hi,

i've written a small smart device app (my first) which has a single
search form which creates a thread to access a sql server Ce database,
after completion i'm use an event handler to callback to the main
thread to update a control. i use the control.invoke method to do
this.

when implemented as above all works fine, but if i create another form
as the main form of a project and create the search form from the main
form the callback no longer works.

any ideas ?

regards
Andy
 
Andy,

How are you showing the search form - using Show or ShowDialog?
 
yep - you're correct - used show instead of show dialog and it works
so obvious now :-)

many thanks
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top