Luke,
Thank you for your reply. While I don't (yet) understand how to use .NET
reflector, I'm not surprised that it indicates that UnmanagedCode is
required, as I deduced this from trial-and-error. I guess my questions now
are:
1. Where is the fact that OnPreviewKeyDown is unmanaged documented?
2. Why is OnPreviewKeyDown unmanaged?
3. Are there other .NET classes/methods that are unmanaged? If so, where is
this documented?
Again, I am creating Winform applications which can be run via ClickOnce
with default Internet permissions. I am concerned that if unmanaged code
permission is required to run basic ClickOnce winform apps, it won't be
acceptable to my customers.
Thanks,
George Holdridge
> With .NET reflector, we can see the source code of OnPreviewKeyDown:
>
[quoted text clipped - 18 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Luke Zhang [MSFT] - 09 Mar 2006 05:33 GMT
Hello,
To download .NET reflector:
http://www.aisto.com/roeder/dotnet/
This utility can help study more about class, properties and methods in
.NET framework. OnPreviewKeyDown is new in the .NET Framework version 2.0.
Its implementing may require unmanaged code (This is not document, but from
what I get from .NET reflector, "UnmanagedCode" permission is necessary
here).
Luke Zhang
(This posting is provided "AS IS", with no warranties, and confers no
rights.)