I'm making a custom control that is a numeric keypad. You can hook it to a text box and when the text box gets focus it will pop up the keypad window for data entry, additionaly it checks the validation errors for the host control and if any, it will display
them in a popup. The keypad window work fine, it's the validation error popup that killing me. My problem is this: First in order to get the Popup to display in the corect Zorder(to be top most) I had to set an event handler on the popup's Opened event and
in that event I had to toggle it's parent window's TopMost property from true to false.(I'm totaly baffled by this). This all works if I bring the keypad window to life with it's Show() method, this is not what I want because of the modless behaviour.
Instead I want to bring the keypad to life with it's ShowDialog() method, but if I do the popup for the validation error info stops calling the CustomPopupPlacment delegate assigned to it, and no longer positions correctly. Can any one help? I don't see a
way to attach the source code so I'll post it here:
This is a test app for the keypad eventually I will use it for a program that controls a machine we build tha
View Complete Post