Hi all

I developed a WinMobile 5-based application that needs to open a
GPRS-connection to make a webservice-call (1x every hour).

By applying a "registry-hack" I managed to suppress the "Connect to
GPRS..."-popup... BUT I was not able to prevent the "Cannot connect"-popup
notification window, that is automatically shown by the winmobile-device
when there is no avail. GSM/GPRS-signal.

My questions:
1) Is there a registry-entry that can be modified to suppress the "Cannot
connect"-popup?
2) Is there a way to disable/suppress the "Cannot connect"-popup by using
the API?
3) I read on the web, that the only way to suppres the "Cannot
connect"-popup is to *kill* the window programmatically AFTER it has been
shown by the winmobile-OS... PLEASE somebody@microsoft... tell me that this
is not true (;->).

Thanks for your help !

Regards,
MH

Re: Windows Mobile 5, GPRS: How to DISABLE the "Cannot connect" popup/ balloon/message ? by Scott

Scott
Wed Mar 12 17:45:26 CDT 2008

"MH" <mhCH@nospam.nospam> wrote:
>
>I developed a WinMobile 5-based application that needs to open a
>GPRS-connection to make a webservice-call (1x every hour).
>
>By applying a "registry-hack" I managed to suppress the "Connect to
>GPRS..."-popup... BUT I was not able to prevent the "Cannot connect"-popup
>notification window, that is automatically shown by the winmobile-device
>when there is no avail. GSM/GPRS-signal.

What language is this? Generally, the answer is just don't show that
pop-up if you don't want it.

I'll guess this is C#, in that case, you might be able to prevent the
pop-up by pointing HKLM\Software\Microsoft\Shell\Rai\:MSREMNET to an
executable that doesn't do anything. Though, off hand, I'm not sure
what else that might break.

--
--------- Scott Seligman <scott at <firstname> and michelle dot net> ---------
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
-- Benjamin Franklin

Re: Windows Mobile 5, GPRS: How to DISABLE the "Cannot connect" popup/ balloon/message ? by Peter

Peter
Thu Mar 13 02:57:36 CDT 2008

If you are using Connection Manager to initiate the connection you can set
the dwFlags of the CONNMGR_CONNECTIONINFO struct to include the flag
CONNMGR_FLAG_NO_ERROR_MSGS.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility


"MH" <mhCH@nospam.nospam> wrote in message
news:uXh1D6IhIHA.4740@TK2MSFTNGP05.phx.gbl...
> Hi all
>
> I developed a WinMobile 5-based application that needs to open a
> GPRS-connection to make a webservice-call (1x every hour).
>
> By applying a "registry-hack" I managed to suppress the "Connect to
> GPRS..."-popup... BUT I was not able to prevent the "Cannot connect"-popup
> notification window, that is automatically shown by the winmobile-device
> when there is no avail. GSM/GPRS-signal.
>
> My questions:
> 1) Is there a registry-entry that can be modified to suppress the "Cannot
> connect"-popup?
> 2) Is there a way to disable/suppress the "Cannot connect"-popup by using
> the API?
> 3) I read on the web, that the only way to suppres the "Cannot
> connect"-popup is to *kill* the window programmatically AFTER it has been
> shown by the winmobile-OS... PLEASE somebody@microsoft... tell me that
> this
> is not true (;->).
>
> Thanks for your help !
>
> Regards,
> MH
>
>


Re: Windows Mobile 5, GPRS: How to DISABLE the "Cannot connect" popup/ balloon/message ? by MH

MH
Thu Mar 13 05:41:29 CDT 2008

** THANK YOU! **
Until now I didn't use the Connection Manager (directly) to initiate the
connection...
But if this solves my problem... it's worth to do it!


--FYI:
I just used... (C#):
myRequest = HttpWebRequest.Create(..)
..


I have already seen some C# samples on the web how to (p/) invoke the
"Connection Manager" to open the GPRS-connection manually. I assume that it
will not be difficult to pass the "open connection" to the
"WebRequest"-object (somehow ;->).
Will find out...

Regards,
Michael




"Peter Foot" <feedback@nospam-inthehand.com> wrote in message
news:FE423CB6-7E59-48FD-A450-81D8D50CE46C@microsoft.com...
> If you are using Connection Manager to initiate the connection you can set
> the dwFlags of the CONNMGR_CONNECTIONINFO struct to include the flag
> CONNMGR_FLAG_NO_ERROR_MSGS.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
>
> "MH" <mhCH@nospam.nospam> wrote in message
> news:uXh1D6IhIHA.4740@TK2MSFTNGP05.phx.gbl...
>> Hi all
>>
>> I developed a WinMobile 5-based application that needs to open a
>> GPRS-connection to make a webservice-call (1x every hour).
>>
>> By applying a "registry-hack" I managed to suppress the "Connect to
>> GPRS..."-popup... BUT I was not able to prevent the "Cannot
>> connect"-popup
>> notification window, that is automatically shown by the winmobile-device
>> when there is no avail. GSM/GPRS-signal.
>>
>> My questions:
>> 1) Is there a registry-entry that can be modified to suppress the "Cannot
>> connect"-popup?
>> 2) Is there a way to disable/suppress the "Cannot connect"-popup by using
>> the API?
>> 3) I read on the web, that the only way to suppres the "Cannot
>> connect"-popup is to *kill* the window programmatically AFTER it has been
>> shown by the winmobile-OS... PLEASE somebody@microsoft... tell me that
>> this
>> is not true (;->).
>>
>> Thanks for your help !
>>
>> Regards,
>> MH
>>
>>
>



Re: Windows Mobile 5, GPRS: How to DISABLE the "Cannot connect" popup/ balloon/message ? by MH

MH
Thu Mar 13 05:50:06 CDT 2008

Hi Scott

Your guess was correct (C#).

FYI:
... I think I will now switch over to the (manual) "Connection
Manager"-approach.
I just learned that one can suppress the error-msg there.

Anyway... THANKS for the hint !
(( HKLM\Software\Microsoft\Shell\Rai\:MSREMNET ))

Regards,
Michael





"Scott Seligman" <seligman@example.com> wrote in message
news:fr9me6$m3c$1@panix3.panix.com...
> "MH" <mhCH@nospam.nospam> wrote:
>>
>>I developed a WinMobile 5-based application that needs to open a
>>GPRS-connection to make a webservice-call (1x every hour).
>>
>>By applying a "registry-hack" I managed to suppress the "Connect to
>>GPRS..."-popup... BUT I was not able to prevent the "Cannot connect"-popup
>>notification window, that is automatically shown by the winmobile-device
>>when there is no avail. GSM/GPRS-signal.
>
> What language is this? Generally, the answer is just don't show that
> pop-up if you don't want it.
>
> I'll guess this is C#, in that case, you might be able to prevent the
> pop-up by pointing HKLM\Software\Microsoft\Shell\Rai\:MSREMNET to an
> executable that doesn't do anything. Though, off hand, I'm not sure
> what else that might break.
>
> --
> --------- Scott Seligman <scott at <firstname> and michelle dot
> net> ---------
> They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety.
> -- Benjamin Franklin



Re: Windows Mobile 5, GPRS: How to DISABLE the "Cannot connect" popup/ balloon/message ? by Peter

Peter
Thu Mar 13 13:52:09 CDT 2008

Once you have established the connection just call the HttpWebRequest as
normal, you don't need to pass a connection reference from connection
manager to the web request.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"MH" <mhCH@nospam.nospam> wrote in message
news:OlkyUbPhIHA.2540@TK2MSFTNGP05.phx.gbl...
> ** THANK YOU! **
> Until now I didn't use the Connection Manager (directly) to initiate the
> connection...
> But if this solves my problem... it's worth to do it!
>
>
> --FYI:
> I just used... (C#):
> myRequest = HttpWebRequest.Create(..)
> ..
>
>
> I have already seen some C# samples on the web how to (p/) invoke the
> "Connection Manager" to open the GPRS-connection manually. I assume that
> it will not be difficult to pass the "open connection" to the
> "WebRequest"-object (somehow ;->).
> Will find out...
>
> Regards,
> Michael
>
>
>
>
> "Peter Foot" <feedback@nospam-inthehand.com> wrote in message
> news:FE423CB6-7E59-48FD-A450-81D8D50CE46C@microsoft.com...
>> If you are using Connection Manager to initiate the connection you can
>> set the dwFlags of the CONNMGR_CONNECTIONINFO struct to include the flag
>> CONNMGR_FLAG_NO_ERROR_MSGS.
>>
>> Peter
>>
>> --
>> Peter Foot
>> Microsoft Device Application Development MVP
>> www.peterfoot.net | www.inthehand.com
>> In The Hand Ltd - .NET Solutions for Mobility
>>
>>
>> "MH" <mhCH@nospam.nospam> wrote in message
>> news:uXh1D6IhIHA.4740@TK2MSFTNGP05.phx.gbl...
>>> Hi all
>>>
>>> I developed a WinMobile 5-based application that needs to open a
>>> GPRS-connection to make a webservice-call (1x every hour).
>>>
>>> By applying a "registry-hack" I managed to suppress the "Connect to
>>> GPRS..."-popup... BUT I was not able to prevent the "Cannot
>>> connect"-popup
>>> notification window, that is automatically shown by the winmobile-device
>>> when there is no avail. GSM/GPRS-signal.
>>>
>>> My questions:
>>> 1) Is there a registry-entry that can be modified to suppress the
>>> "Cannot
>>> connect"-popup?
>>> 2) Is there a way to disable/suppress the "Cannot connect"-popup by
>>> using
>>> the API?
>>> 3) I read on the web, that the only way to suppres the "Cannot
>>> connect"-popup is to *kill* the window programmatically AFTER it has
>>> been
>>> shown by the winmobile-OS... PLEASE somebody@microsoft... tell me that
>>> this
>>> is not true (;->).
>>>
>>> Thanks for your help !
>>>
>>> Regards,
>>> MH
>>>
>>>
>>
>
>