PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

Form Closing Event Issue in WM6.5 device

 
 
Y. Sivaram
Guest
Posts: n/a
 
      9th Dec 2009
I have a strange problem in Windows Mobile 6.5 Acer Neo S200 device. In my
application in the Form closing event, I am showing a message box to get a
user input to decide whether to close the form or not. However in this
device while the message box code is getting executed (I.e. if I step
through the code the closing event and the message box code gets hit), but
it does not wait for the message box input and simply closes the form. The
message box briefly appears for a second and disappears. When I check the
same code in Windows Mobile 5,6 devices or 6.5 emulator it works fine. I do
not have any other Windows Mobile 6.5 device. Hence cannot verify this
behaviour.

Note my window does not have minimise button (it is a OK button) & the
closing event IS firing.

Any ideas?

Code I am using in the close event is

private void Form2_Closing(object sender, CancelEventArgs e)
{
DialogResult UserSelection = MessageBox.Show("Are you sure", "Test",
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation,
MessageBoxDefaultButton.Button2);
if (UserSelection != DialogResult.Yes)
e.Cancel = true;
}


Apologies if it is considered as double posting. I have already posted this
to
http://social.msdn.microsoft.com/For...-409cc7c809a7/

But didn't get any solution.


 
Reply With Quote
 
 
 
 
Peter Foot
Guest
Posts: n/a
 
      9th Dec 2009
I've seen that MessageBoxes with only an Ok button are dismissed when you
tap anywhere on them which is a change to previous versions. But boxes with
2 or more buttons should exhibit the same behaviour as before. What you have
maybe a device specific bug. I can't duplicate this on a HTC Touch Diamond 2
running 6.5.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility

"Y. Sivaram" <y removethisandspace sivaram.at.ya.h.o.o.c.o.m> wrote in
message news:#U$(E-Mail Removed)...
> I have a strange problem in Windows Mobile 6.5 Acer Neo S200 device. In my
> application in the Form closing event, I am showing a message box to get a
> user input to decide whether to close the form or not. However in this
> device while the message box code is getting executed (I.e. if I step
> through the code the closing event and the message box code gets hit), but
> it does not wait for the message box input and simply closes the form. The
> message box briefly appears for a second and disappears. When I check the
> same code in Windows Mobile 5,6 devices or 6.5 emulator it works fine. I
> do not have any other Windows Mobile 6.5 device. Hence cannot verify this
> behaviour.
>
> Note my window does not have minimise button (it is a OK button) & the
> closing event IS firing.
>
> Any ideas?
>
> Code I am using in the close event is
>
> private void Form2_Closing(object sender, CancelEventArgs e)
> {
> DialogResult UserSelection = MessageBox.Show("Are you sure", "Test",
> MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation,
> MessageBoxDefaultButton.Button2);
> if (UserSelection != DialogResult.Yes)
> e.Cancel = true;
> }
>
>
> Apologies if it is considered as double posting. I have already posted
> this to
> http://social.msdn.microsoft.com/For...-409cc7c809a7/
>
> But didn't get any solution.
>
>

 
Reply With Quote
 
 
 
 
Markus Humm
Guest
Posts: n/a
 
      9th Dec 2009
Peter Foot schrieb:
> I've seen that MessageBoxes with only an Ok button are dismissed when
> you tap anywhere on them which is a change to previous versions. But
> boxes with 2 or more buttons should exhibit the same behaviour as
> before. What you have maybe a device specific bug. I can't duplicate
> this on a HTC Touch Diamond 2 running 6.5.
>


Hello,

I don not like that change as far as I've seen yet this leads to the
impossibility to move that dialog around! So you can't read what's
behind it. One option would be to create a dialogue with OK and OKL
button, if the CF doesn't disallow this ;-) (or deletes the 2nd ok button)

Greetings

Markus
 
Reply With Quote
 
Y. Sivaram
Guest
Posts: n/a
 
      10th Dec 2009
Thanks Peter.

I too think it is a device issue. The device came with the ROM v1.002 and I
even tried upgrading to ROM v2.003. Still no luck.

I have raised this issue with Acer Support. I will keep you all posted.


"Peter Foot" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've seen that MessageBoxes with only an Ok button are dismissed when you
> tap anywhere on them which is a change to previous versions. But boxes
> with 2 or more buttons should exhibit the same behaviour as before. What
> you have maybe a device specific bug. I can't duplicate this on a HTC
> Touch Diamond 2 running 6.5.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> peterfoot.net | appamundi.com | inthehand.com
> APPA Mundi Ltd - software solutions for a mobile world
> In The Hand Ltd - .NET Components for Mobility
>
> "Y. Sivaram" <y removethisandspace sivaram.at.ya.h.o.o.c.o.m> wrote in
> message news:#U$(E-Mail Removed)...
>> I have a strange problem in Windows Mobile 6.5 Acer Neo S200 device. In
>> my application in the Form closing event, I am showing a message box to
>> get a user input to decide whether to close the form or not. However in
>> this device while the message box code is getting executed (I.e. if I
>> step through the code the closing event and the message box code gets
>> hit), but it does not wait for the message box input and simply closes
>> the form. The message box briefly appears for a second and disappears.
>> When I check the same code in Windows Mobile 5,6 devices or 6.5 emulator
>> it works fine. I do not have any other Windows Mobile 6.5 device. Hence
>> cannot verify this behaviour.
>>
>> Note my window does not have minimise button (it is a OK button) & the
>> closing event IS firing.
>>
>> Any ideas?
>>
>> Code I am using in the close event is
>>
>> private void Form2_Closing(object sender, CancelEventArgs e)
>> {
>> DialogResult UserSelection = MessageBox.Show("Are you sure", "Test",
>> MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation,
>> MessageBoxDefaultButton.Button2);
>> if (UserSelection != DialogResult.Yes)
>> e.Cancel = true;
>> }
>>
>>
>> Apologies if it is considered as double posting. I have already posted
>> this to
>> http://social.msdn.microsoft.com/For...-409cc7c809a7/
>>
>> But didn't get any solution.
>>
>>



 
Reply With Quote
 
New Member
Join Date: May 2010
Posts: 1
 
      4th May 2010
Getting a similar issue

I have been using an Arcpad/Arcgis project for sometime now and have never had issues regardless of devices/OS the users are using.

However have just recently purchased a number of Acer Neotouch S200s (Windows Mobile Professional 6.5) and I am now getting error:

Permission Denied: 'Msgbox'

Everything I have been able to find on the web suggest server side issue largely related to ASP apps... but I am getting it on a local install of arcpad WHEREVER msgbox is used in coding, which includes my customized scripts but also Arcpad own script (for example when clicking on photo tab).

Anything that outputs any sort of msgbox or warning to the device screen (IE also happens when encountered a blank "required" field).

Have used HTCs in the past with 6.1 (possibly 6.5 too i would need to check) and had no issues. Have sent an email to Acer and am awaiting a response... but I have no idea why would be having issue with something so fundamental.
Is there an issue with vbs on NeoTouch or Smartphones in general?

Last edited by lidias13; 4th May 2010 at 09:34 PM..
 
Reply With Quote
 
New Member
Join Date: Nov 2011
Posts: 1
 
      5th Nov 2011
Hi Iidias13,

I'm having the same problem with a new Magellan Pro10 running WinMobile 6.5. Any script that uses Msgbox generates this error:

[IMG]www.stratamodel.com/images/Clipboard01.jpg[/IMG

Did you ever find out what is causing this problem for you? None of my ArcPad scripts will work on the new Pro10.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event ID: 1003, Event Type: Error ,Event Source: System Error,Event Category: (102) BoazBoaz Windows XP General 0 21st Jun 2006 05:39 PM
Showing form , closing login form but not closing app, how Bob Microsoft VB .NET 3 21st Dec 2005 08:54 PM
Closing event in a MID Child form I don't know if the child form is closing or the main form is closing **Developer** Microsoft C# .NET 1 19th Oct 2005 04:51 PM
1394 device not identified after updates- "61338 Device Class- Unknown Device" error. NP Windows XP General 0 4th Jan 2004 04:01 AM
1394 device not identified after updates- "61338 Device Class- Unknown Device" error. NP Windows XP Hardware 0 4th Jan 2004 04:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 AM.