> I'm thinking no problem, I'll just add a message filter in
> (WndProc) and
> fire the validation myself -- but I cannot figure out how to code this
> given that the data grid text box is initially created in the
> constructor
> for the data grid text box column -- so how to attach to it's
> message loop
> and intercept the message that it's ignoring?
>
> Catching the control's message pump seems like the way to do
> this, but I'm
> open to low cost/quick 'n dirty solutions here that all the
> developers can
> use without having to think too much.
Friend Class DataGridTextBoxSubClasser
Inherits NativeWindow
Public Sub New(ByVal hWnd As IntPtr)
MyBase.AssignHandle(hWnd)
End Sub
Public Sub Dispose()
MyBase.ReleaseHandle()
End Sub
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
If m.Msg = Whatever Then
RaiseEvent . . .
End If
'You will get your messages here.
End Sub
End Class
I'm sure that there is some event that does actually get fired at which
point you can wire up the subclasser.
> Moderator: Please don't send me to Winforms no one there is
> going to know
> how to do this.
Unnecessarily rude.
Jacob A. Grass
Software Engineer
Daleen
______________________
this message contains confidential information intended solely for the
recipient of the addressee(s) named above any review disclosure
distribution copying or use of the information by others is strictly
prohibited if you have received this message in error please advise the
sender by immediate reply and delete the original message