Long shot but here goes.....
I am developing a vb.net application using the MS application block pattern,
available @
http://msdn.microsoft.com/library/de...uipab-ch03.asp
And I have developed some views that derive of
Microsoft.ApplicationBlocks.UIProcess.WindowsFormV iew BUT I am unable to get
any key press events, I want to stop the user pressing the Alt+F4 key to
close the application, I can do this in a normal application very easily so
don't bother replying with a simple example, what I want to know is why I'm
not getting the events when using the application block patterm?
the application block is written in C# and I have tried overriding the the
KeyDown method in the application block but don't get any event being caught
there either.
Anyone got any ideas?
Cheers for any help in advance
Ollie
any example class is shown below....
Public Class Welcome
Inherits Microsoft.ApplicationBlocks.UIProcess.WindowsFormV iew
.....
.....
.....
Protected Overrides Sub OnKeyDown(ByVal e As KeyEventArgs)
If e.KeyCode = Keys.Alt Then
ErrorHandler.ProcessError("ALT PRESSED")
Else
MyBase.OnKeyDown(e)
End If
End Sub