Form flicker on GotFocus...

I am trying to replicate in .NET some of the functionality of the SIP. 

I would have much rather have used the SIP but the app is a full 1024*768 res and the board supplier only included the small SIP, which is not great for my users Sad.

My SIP is basically an array list of buttons created at runtime and arranged nicely on a target control usually a panel hosted on my Main form.

The problem is that when I try to use the keyboard on a pop-up form, each time the user presses a key on the onscreen keyboard I have to refocus the pop-up form. Consequently there is alot of screen flicker each time a key is pressed on the keyboard.

Does anybody know of a way of eliminating the flicker or a better way of implementing my keyboard

Thanks in advance...



Answer this question

Form flicker on GotFocus...

  • Farmer11243

  • Lectos

    No, its not a form...the SIP is class that builds a SIP at runtime on a parent control. So when I want to make my SIP I create a panel, position it on a form then add the SIP. The constructor of the SIP takes the panel as an argument.

    The SIP has a Textbox property so when I want to use it for enterring data I set the property when the textbox in question gets focus.

    This all works quite nicely and quick to...I tried having the SIP on a form and then adding the form to a panel but showing the form is slowish..

    So I have a panel on my main form in the bottom right hand corner that houses my SIP. Enterring data on textboxes on the main form is great but open up a dialog and try to use the SIP on the main form then when I refocus the dialog after a keypress the dialog and the main form flicker.

    Hope that makes sense...



  • dhaupt72

    So, you've got a separate window (form) as a SIP How do you communicate with your entry form Have you tried to send keys to the currently focused text box


  • Dilip Trivedi

    Thanks for that...it's pretty much what I've got already. The problem is not in creating the keyboard and making it work but with it working with dialogs.

    The keyboard sits at the bottom right hand corner of my main form (like the SIP). However, if I try to use the keyboard to enter text on a dialog (obviously the dialog cannot be modal) then each time a key is pressed I have to refocus the dialog which causes an annoying flicker...

    I could create an instance of the custom SIP on my dialog and yes problem solved but doesn't look great and makes all my dialog's bigger than required.

    Any other ideas

  • Form flicker on GotFocus...