Me.Close Form Issue

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
 
S

Serg Kuryata [MS]

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
|
|
|
 

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

Similar Threads

me.close doesn't work!!! 5
Multiple Forms & Me.Close 2
How to close sub-form opened by showDialog()? 2
Forms not closing 2
HTC S710 1
Sync status 0
Closing form while processing 2
Nested Forms - How to close? 1

Top