Results 1 to 6 of 6

Thread: CompactFramework and Window Messages

  1. #1

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103

    CompactFramework and Window Messages

    Hi all,

    I'm using the Compact Framework and VB.net to develop embedded apps.

    I really like to intercept the WM_VSCROLL message of a DataGrid, since the CF boys forgotten to implement the Scroll event

    Someone can help me?

    Thanks
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This is how you intercepts msgs in .NET application . If it doesn't work for you then I'm sorry it's my first shot with CFW .

    VB Code:
    1. 'Declare message const
    2.  
    3. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    4.         Select Case m.Msg
    5.  
    6.             Case WM_VSCROLL
    7.                 'do this
    8.  
    9.         End Select
    10.  
    11.         MyBase.WndProc(m)
    12.  
    13.     End Sub

  3. #3

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103
    Originally posted by Pirate
    This is how you intercepts msgs in .NET application . If it doesn't work for you then I'm sorry it's my first shot with CFW .

    VB Code:
    1. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    Sure this is CFW compliant?
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Told you not sure but it seems near to this :
    VB Code:
    1. Imports Microsoft.WindowCE.Forms
    2.  
    3. Protected Overrides Sub WndProc(ByRef m As Message)

    Helpful link

  5. #5

    Thread Starter
    Lively Member neodatatype's Avatar
    Join Date
    Aug 2002
    Location
    Italy
    Posts
    103
    Originally posted by Pirate
    Told you not sure but it seems near to this :
    VB Code:
    1. Imports Microsoft.WindowCE.Forms
    2.  
    3. Protected Overrides Sub WndProc(ByRef m As Message)
    Excuse me... but I still see only a WndProc in the MessageWindow class, that I cannot figure out how this can be of some help.

    Thanks.
    > NeoDataType.net <

    Try my Free .Net Reporting Tool!

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    lol , then help yourself figuring out what's WndProc and what's it for . Can't help any better .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width