Using the Compact Framework.

I'm quite new to .NET and the CF and threading in general. Hope I can get some insight.

I have an app that tries to connect via TCP. Since I want the GUI to be responsive when attempting to connect, I create a thread and start the Connect() method.

My problem is, the Connect() method attempts to change the visibility of ToolBar buttons. If the current Visibility is False and I try to change to True, the Connect() method hangs, also, the GUI is not responsive.

I'm guessing I'm creating a deadlock. Any help is appreciated.

Mike