About VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

We are using Visual Studio .NET 2003, and target is WinCE420.
We have made Smart Device Application project.
We have a problem. I don't know how to get Window Handle.
In other word, Form1.Handle member do not exist.

1) How can I get Window Handle?

To test, we have tried to lanuch MessageBox on WinCE420.
The result, In WinCE420 Case, MessageBox is not launched. but, is launched
on WindowsXP. Naturally, we have included .NET Compact Frame Work to
WinnCE420.

2) Why do MessageBox is not launched on WinCE420?

Thanks.
 
1. As you've been realized there is no Handle property for CF1.0. To
avoid this limitation use:

Form1.Capture = true
Dim hwnd as IntPtr = GetCapture()
Form1.Capture = false

....

<DllImport("coredll">_
Shared Function GetCapture() as IntPtr

2. MessageBox.Show("Test") works fine for me to WindowsCE 4.2.


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
1) How can I get Window Handle?
Why?

To test, we have tried to lanuch MessageBox on WinCE420.
The result, In WinCE420 Case, MessageBox is not launched. but, is launched
on WindowsXP. Naturally, we have included .NET Compact Frame Work to
WinnCE420.

2) Why do MessageBox is not launched on WinCE420?

And why you do not use the MessageBox class?

--
 
Back
Top