in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Preventing DropDownForm from closing when it loses focus?

Last post 11-07-2007 4:40 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-07-2007 12:10 PM

    Preventing DropDownForm from closing when it loses focus?

    Is it possible to prevent a C1Input.DropDownForm from automatically closing when it loses focus?  I have a custom C1Input.DropDownForm that a user will need to enter data into but sometimes a user may need to switch to another application and then back.  Currently when the user switches to the other application the drop down form closes.  This then requires the user to reopen the drop down when they switch back to my application.  Any help or suggestions would be appreciated.

    Filed under:
  • 11-07-2007 4:40 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 527

    Re: Preventing DropDownForm from closing when it loses focus?

    Currently this isn't possible to do nicely.  I have some suggestions:

    You can force the dropdown to be open anywhere in your app with
    C1DropDownControl1.OpenDropDown()

    The drop down is a form itself, so you can manipulate it's visibility with its Show method.  But you'll have to play around with it to do what you want.

     Private Sub CustomDropDown_VisibleChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.VisibleChanged

    Me.Show()

    End Sub

    Regards,
    Greg

     

    ComponentOne Technical Engagement
    Filed under: ,
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.