Me.Close Form Issue

  • Thread starter Thread starter Al
  • Start date Start date
A

Al

Hi All,

I have a weird problem occurring with one of my forms. I have a data entry
form that calls a sync form. The sync form contains code that interacts
with a webservice. The sync form simply opens and displays a few status
messages and then should close without any user interaction. I have a
me.close method that occurs once the sync is complete. I can see through
the debugger that me.close is getting hit. Unfortunately, the form is not
closing (and no event is getting generated). If I put a button on the sync
form and run the sync code after the button is tapped, the form closes.

VB.Net 2003, Pocket PC 2002

Any help is greatly appreciated.

Al
 
Please make sure that you call the Form.Close() method from the main
thread. If not then you must use Control.Invoke().

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Al" <[email protected]>
| Subject: Me.Close Form Issue
| Date: Tue, 23 Mar 2004 11:35:32 -0500
| Lines: 18
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: host179.ssimed.com 207.190.213.179
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:49268
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi All,
|
| I have a weird problem occurring with one of my forms. I have a data
entry
| form that calls a sync form. The sync form contains code that interacts
| with a webservice. The sync form simply opens and displays a few status
| messages and then should close without any user interaction. I have a
| me.close method that occurs once the sync is complete. I can see through
| the debugger that me.close is getting hit. Unfortunately, the form is not
| closing (and no event is getting generated). If I put a button on the
sync
| form and run the sync code after the button is tapped, the form closes.
|
| VB.Net 2003, Pocket PC 2002
|
| Any help is greatly appreciated.
|
| Al
|
|
|
 
Back
Top