473,416 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Listening for messages in compact.net

Hi,
How do i listen for windows messages in c# on
compact.net? I have a window containing an instantiation
of the HTML viewer control, which is a child of the main
form. As the compact implementation of the form class
does not have a wndproc function to override, i cannot
get the messages. I cannot use a message window, as the
window i am listening to will then not display.

Is there another method of doing this?
Adam
Nov 15 '05 #1
5 1987
Hello Adam,

Currently I am looking for somebody who could help you on it and will
follow up with you here. Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Adam" <ad**@twv.org>
!Sender: "Adam" <ad**@twv.org>
!Subject: Listening for messages in compact.net
!Date: Mon, 1 Sep 2003 09:52:18 -0700
!Lines: 11
!Message-ID: <00****************************@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNwqWdmFhiPnPfmSIG2yJty/GDZMg==
!Newsgroups: microsoft.public.dotnet.languages.csharp
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:181352
!NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
!X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
!
!Hi,
!How do i listen for windows messages in c# on
!compact.net? I have a window containing an instantiation
!of the HTML viewer control, which is a child of the main
!form. As the compact implementation of the form class
!does not have a wndproc function to override, i cannot
!get the messages. I cannot use a message window, as the
!window i am listening to will then not display.
!
!Is there another method of doing this?
!Adam
!

Nov 15 '05 #2
Sorry, but I don't think this will work (as i have
already tried using a message window).
If i set the message window as the parent of the HTML
control, i can receive the messages, but the control
doesn't display. If i set my form as the parent, the
control displays but i can't receive the messages. I need
it to both display the control and receive the messages
from it at the same time.
Adam.
-----Original Message-----
Please check the documentation on "Windows Messages from Native Controls"at -
http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dv_evtuv/html/etconwindowsmessagesfromnativecontrols.asp

The links for MessageWindow Class and Message Structure on the above pageshould provide more information and code samples.

The following articles with code samples should give a better understanding-
Using the MessageWindow Class-
http://samples.gotdotnet.com/quickst...pactFramework/ doc/messagewindow.aspx
Using the Microsoft .NET Compact Framework MessageWindow Class -http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnnetcomp/html/messagewindow.asp
Reggie
Microsoft DSW-MDD

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 40358785
| References: <00****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: yh*****@online.microsoft.com (Yan-Hong Huang [MSFT])| Organization: Microsoft
| Date: Wed, 03 Sep 2003 01:31:06 GMT
| Subject: RE: Listening for messages in compact.net
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <#Z**************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 40
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:181729| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
|
| Hello Adam,
|
| Currently I am looking for somebody who could help you on it and will| follow up with you here. Thanks.
|
| Best regards,
| Yanhong Huang
| Microsoft Online Partner Support
|
| Get Secure! - www.microsoft.com/security
| This posting is provided "AS IS" with no warranties, and confers norights.
|
| --------------------
| !Content-Class: urn:content-classes:message
| !From: "Adam" <ad**@twv.org>
| !Sender: "Adam" <ad**@twv.org>
| !Subject: Listening for messages in compact.net
| !Date: Mon, 1 Sep 2003 09:52:18 -0700
| !Lines: 11
| !Message-ID: <00****************************@phx.gbl>
| !MIME-Version: 1.0
| !Content-Type: text/plain;
| ! charset="iso-8859-1"
| !Content-Transfer-Encoding: 7bit
| !X-Newsreader: Microsoft CDO for Windows 2000
| !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300| !Thread-Index: AcNwqWdmFhiPnPfmSIG2yJty/GDZMg==
| !Newsgroups: microsoft.public.dotnet.languages.csharp
| !Path: cpmsftngxa06.phx.gbl
| !Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:181352
| !NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| !X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| !
| !Hi,
| !How do i listen for windows messages in c# on
| !compact.net? I have a window containing an instantiation| !of the HTML viewer control, which is a child of the main| !form. As the compact implementation of the form class
| !does not have a wndproc function to override, i cannot| !get the messages. I cannot use a message window, as the| !window i am listening to will then not display.
| !
| !Is there another method of doing this?
| !Adam
| !
|
|

.

Nov 15 '05 #3
Could you send a snippet of the part where you are using the HTMLView
control with the MessageWindow?

Reggie
Microsoft DSW-MDD

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Adam" <ad**@twv.org>
| Sender: "Adam" <ad**@twv.org>
| References: <00****************************@phx.gbl>
<#Z**************@cpmsftngxa06.phx.gbl>
<en**************@cpmsftngxa06.phx.gbl>
| Subject: RE: Listening for messages in compact.net
| Date: Thu, 4 Sep 2003 01:27:26 -0700
| Lines: 122
| Message-ID: <0c****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNyvl9psqkKDb7nTLagYwpGWAyI+w==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:182188
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Sorry, but I don't think this will work (as i have
| already tried using a message window).
| If i set the message window as the parent of the HTML
| control, i can receive the messages, but the control
| doesn't display. If i set my form as the parent, the
| control displays but i can't receive the messages. I need
| it to both display the control and receive the messages
| from it at the same time.
| Adam.
| >-----Original Message-----
| >Please check the documentation on "Windows Messages from
| Native Controls"
| >at -
| >http://msdn.microsoft.com/library/default.asp?
| url=/library/en-us/dv_evtuv/ht
| >ml/etconwindowsmessagesfromnativecontrols.asp
| >
| >The links for MessageWindow Class and Message Structure
| on the above page
| >should provide more information and code samples.
| >
| >The following articles with code samples should give a
| better understanding
| >-
| >Using the MessageWindow Class-
| >http://samples.gotdotnet.com/quickst...pactFramework/
| doc/messagewindow.a
| >spx
| >Using the Microsoft .NET Compact Framework MessageWindow
| Class -
| >http://msdn.microsoft.com/library/default.asp?
| url=/library/en-us/dnnetcomp/h
| >tml/messagewindow.asp
| >
| >
| >Reggie
| >Microsoft DSW-MDD
| >
| >This posting is provided "AS IS" with no warranties, and
| confers no rights.
| >
| >
| >
| >--------------------
| >| X-Tomcat-ID: 40358785
| >| References: <00****************************@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain
| >| Content-Transfer-Encoding: 7bit
| >| From: yh*****@online.microsoft.com (Yan-Hong Huang
| [MSFT])
| >| Organization: Microsoft
| >| Date: Wed, 03 Sep 2003 01:31:06 GMT
| >| Subject: RE: Listening for messages in compact.net
| >| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| >| Message-ID: <#Z**************@cpmsftngxa06.phx.gbl>
| >| Newsgroups: microsoft.public.dotnet.languages.csharp
| >| Lines: 40
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.csharp:181729
| >| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
| >|
| >| Hello Adam,
| >|
| >| Currently I am looking for somebody who could help you
| on it and will
| >| follow up with you here. Thanks.
| >|
| >| Best regards,
| >| Yanhong Huang
| >| Microsoft Online Partner Support
| >|
| >| Get Secure! - www.microsoft.com/security
| >| This posting is provided "AS IS" with no warranties,
| and confers no
| >rights.
| >|
| >| --------------------
| >| !Content-Class: urn:content-classes:message
| >| !From: "Adam" <ad**@twv.org>
| >| !Sender: "Adam" <ad**@twv.org>
| >| !Subject: Listening for messages in compact.net
| >| !Date: Mon, 1 Sep 2003 09:52:18 -0700
| >| !Lines: 11
| >| !Message-ID: <00****************************@phx.gbl>
| >| !MIME-Version: 1.0
| >| !Content-Type: text/plain;
| >| ! charset="iso-8859-1"
| >| !Content-Transfer-Encoding: 7bit
| >| !X-Newsreader: Microsoft CDO for Windows 2000
| >| !X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| !Thread-Index: AcNwqWdmFhiPnPfmSIG2yJty/GDZMg==
| >| !Newsgroups: microsoft.public.dotnet.languages.csharp
| >| !Path: cpmsftngxa06.phx.gbl
| >| !Xref: cpmsftngxa06.phx.gbl
| >microsoft.public.dotnet.languages.csharp:181352
| >| !NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| >| !X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| >| !
| >| !Hi,
| >| !How do i listen for windows messages in c# on
| >| !compact.net? I have a window containing an
| instantiation
| >| !of the HTML viewer control, which is a child of the
| main
| >| !form. As the compact implementation of the form class
| >| !does not have a wndproc function to override, i
| cannot
| >| !get the messages. I cannot use a message window, as
| the
| >| !window i am listening to will then not display.
| >| !
| >| !Is there another method of doing this?
| >| !Adam
| >| !
| >|
| >|
| >
| >.
| >
|

Nov 15 '05 #4
Hi Adam,

I already posted this in the other newsgroup thread, but just for
completeness, I am posting it here too.

I looked at your sample at www.tenwisevirgins.com/Example.zip. I believe
you have already got the display part to work.

The HTMLViewer class in the sample is from
http://www.opennetcf.org/download.asp?product=Forms. The sample needs to be
combined with the concepts on "Using MessageWindow" at
http://msdn.microsoft.com/library/de...us/dv_evtuv/ht
ml/etconusingmessagewindow.asp

To be more specific, the HTMLViewer class needs a protected override
method that handles the event. From this method you need to do a
Microsoft.WindowsCE.Forms.MessageWindow.SendMessag e with an object of type
Microsoft.WindowsCE.Forms.Message created with myMessageWindow.NM_HOTSPOT
as the message id.

Let us know how this goes

Reggie
Microsoft - DSW-MDD

This posting is provided "AS IS" with no warranties and confers no rights.
--------------------
| X-Tomcat-ID: 385160070
| References: <00****************************@phx.gbl>
<#Z**************@cpmsftngxa06.phx.gbl>
<en**************@cpmsftngxa06.phx.gbl>
<0c****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: ra******@online.microsoft.com ("Reggie Joy")
| Organization: Microsoft
| Date: Mon, 08 Sep 2003 15:17:24 GMT
| Subject: RE: Listening for messages in compact.net
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <nV**************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 131
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183210
| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
|
| Could you send a snippet of the part where you are using the HTMLView
| control with the MessageWindow?
|
| Reggie
| Microsoft DSW-MDD
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
|
| --------------------
| | Content-Class: urn:content-classes:message
| | From: "Adam" <ad**@twv.org>
| | Sender: "Adam" <ad**@twv.org>
| | References: <00****************************@phx.gbl>
| <#Z**************@cpmsftngxa06.phx.gbl>
| <en**************@cpmsftngxa06.phx.gbl>
| | Subject: RE: Listening for messages in compact.net
| | Date: Thu, 4 Sep 2003 01:27:26 -0700
| | Lines: 122
| | Message-ID: <0c****************************@phx.gbl>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="iso-8859-1"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| | Thread-Index: AcNyvl9psqkKDb7nTLagYwpGWAyI+w==
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | Path: cpmsftngxa06.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:182188
| | NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| | Sorry, but I don't think this will work (as i have
| | already tried using a message window).
| | If i set the message window as the parent of the HTML
| | control, i can receive the messages, but the control
| | doesn't display. If i set my form as the parent, the
| | control displays but i can't receive the messages. I need
| | it to both display the control and receive the messages
| | from it at the same time.
| | Adam.
| | >-----Original Message-----
| | >Please check the documentation on "Windows Messages from
| | Native Controls"
| | >at -
| | >http://msdn.microsoft.com/library/default.asp?
| | url=/library/en-us/dv_evtuv/ht
| | >ml/etconwindowsmessagesfromnativecontrols.asp
| | >
| | >The links for MessageWindow Class and Message Structure
| | on the above page
| | >should provide more information and code samples.
| | >
| | >The following articles with code samples should give a
| | better understanding
| | >-
| | >Using the MessageWindow Class-
| | >http://samples.gotdotnet.com/quickst...pactFramework/
| | doc/messagewindow.a
| | >spx
| | >Using the Microsoft .NET Compact Framework MessageWindow
| | Class -
| | >http://msdn.microsoft.com/library/default.asp?
| | url=/library/en-us/dnnetcomp/h
| | >tml/messagewindow.asp
| | >
| | >
| | >Reggie
| | >Microsoft DSW-MDD
| | >
| | >This posting is provided "AS IS" with no warranties, and
| | confers no rights.
| | >
| | >
| | >
| | >--------------------
| | >| X-Tomcat-ID: 40358785
| | >| References: <00****************************@phx.gbl>
| | >| MIME-Version: 1.0
| | >| Content-Type: text/plain
| | >| Content-Transfer-Encoding: 7bit
| | >| From: yh*****@online.microsoft.com (Yan-Hong Huang
| | [MSFT])
| | >| Organization: Microsoft
| | >| Date: Wed, 03 Sep 2003 01:31:06 GMT
| | >| Subject: RE: Listening for messages in compact.net
| | >| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| | >| Message-ID: <#Z**************@cpmsftngxa06.phx.gbl>
| | >| Newsgroups: microsoft.public.dotnet.languages.csharp
| | >| Lines: 40
| | >| Path: cpmsftngxa06.phx.gbl
| | >| Xref: cpmsftngxa06.phx.gbl
| | microsoft.public.dotnet.languages.csharp:181729
| | >| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
| | >|
| | >| Hello Adam,
| | >|
| | >| Currently I am looking for somebody who could help you
| | on it and will
| | >| follow up with you here. Thanks.
| | >|
| | >| Best regards,
| | >| Yanhong Huang
| | >| Microsoft Online Partner Support
| | >|
| | >| Get Secure! - www.microsoft.com/security
| | >| This posting is provided "AS IS" with no warranties,
| | and confers no
| | >rights.
| | >|
| | >| --------------------
| | >| !Content-Class: urn:content-classes:message
| | >| !From: "Adam" <ad**@twv.org>
| | >| !Sender: "Adam" <ad**@twv.org>
| | >| !Subject: Listening for messages in compact.net
| | >| !Date: Mon, 1 Sep 2003 09:52:18 -0700
| | >| !Lines: 11
| | >| !Message-ID: <00****************************@phx.gbl>
| | >| !MIME-Version: 1.0
| | >| !Content-Type: text/plain;
| | >| ! charset="iso-8859-1"
| | >| !Content-Transfer-Encoding: 7bit
| | >| !X-Newsreader: Microsoft CDO for Windows 2000
| | >| !X-MimeOLE: Produced By Microsoft MimeOLE
| | V5.50.4910.0300
| | >| !Thread-Index: AcNwqWdmFhiPnPfmSIG2yJty/GDZMg==
| | >| !Newsgroups: microsoft.public.dotnet.languages.csharp
| | >| !Path: cpmsftngxa06.phx.gbl
| | >| !Xref: cpmsftngxa06.phx.gbl
| | >microsoft.public.dotnet.languages.csharp:181352
| | >| !NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| | >| !X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| | >| !
| | >| !Hi,
| | >| !How do i listen for windows messages in c# on
| | >| !compact.net? I have a window containing an
| | instantiation
| | >| !of the HTML viewer control, which is a child of the
| | main
| | >| !form. As the compact implementation of the form class
| | >| !does not have a wndproc function to override, i
| | cannot
| | >| !get the messages. I cannot use a message window, as
| | the
| | >| !window i am listening to will then not display.
| | >| !
| | >| !Is there another method of doing this?
| | >| !Adam
| | >| !
| | >|
| | >|
| | >
| | >.
| | >
| |
|
|

Nov 15 '05 #5
>-----Original Message-----
<snip>
To be more specific, the HTMLViewer class needs a
protected override method that handles the event.
</snip>

Thanks for your reply, but...
The HTMLViewer class cannot handle the event and then
send it to a message window because the only things that
handle events in the compact framework are message
windows. I keep posting this, and microsoft employees
keep ignoring it. This aside, I have now solved the
problem with the help of the following article, which
others with the same problem may find useful:

http://www.gotdotnet.com/Community/U...es/Details.asp
x?SampleGuid=3C1A8B60-5E76-477A-A79F-D248DB9600E8

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: brettk | last post by:
Hello All, I've written a small daemon that monitors a pop3 mailbox and downloads any new messages. It's run from the console in windows, and instead of having it print something each time it...
3
by: ssantamariagarcia | last post by:
I am trying to program a server in C for UNIX to get a kind of "bridge" between the clients of a port A and the clients of a port B. For that, I create 2 processes: one that listen the requests of...
3
by: Adam | last post by:
I've posted about this previously, but failed to receive a satisfactory response, so have included a code sample: I am trying to receive messages from an HTML viewer control in compact.net (c#),...
7
by: simonrigby_uk | last post by:
Hi all, Sorry if this is the incorrect group but I couldn't see anything directly relevant. Can someone confirm for me what happens when two network streams are sent to an application at the...
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
1
by: Dieter Boden-Schelfthout | last post by:
Hey, I wrote a small console application that sends out broadcast messages, but I cannot find a way to listen for these broadcasts in another application. How can I achieve this? I found some...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from...
2
by: andrewbb | last post by:
I'm developing a windows service that needs to listen for a particular WM_ message. Is there a way to listen for a message from .NET service application? This would seem to be a simple thing,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.