locked
autocomplete in comboboxes responds too slow RRS feed

  • Question

  • iam working in a project autocomplete in comboboxes respond's too slow ,but there is a form have too many control's on it when i remve it autocomplete working fine ,but i can't Dispense this form.
    so what can i do experts ?
    Saturday, February 25, 2012 10:48 AM

Answers

  • The dispose method makes an object unusable so not so clever to use that one, while normally there is not any need for it. In a by the designer created form is an implementation of IDisposable done.

    As it does not harm currently, then you create is probably somewhere new again.

    If your form is a dialog form however, then it makes sense to use the dispose method (or better using) as that is not included in the components of a form.


    Success
    Cor

    • Marked as answer by Kee Poppy Thursday, March 8, 2012 9:19 AM
    Saturday, February 25, 2012 2:14 PM

All replies

  • Iamsad,

    To remove a control from a form then the method dispose from components does nothing on a form (moreover that method does nothing extra if you have used the designer)

    You have to remove it from the controls.

    Controls.Remove(MyCombobox)


    Success
    Cor


    • Edited by Cor Ligthert Saturday, February 25, 2012 12:11 PM
    Saturday, February 25, 2012 12:11 PM
  • Hi

    Iam not sure if I understanded you but actualy you gave me an iidea

    I wrote this code in the start form in load event

    issue_form.dispose()

    and every thing worked fine

    but I need to know for sure if this peace of code have any side effects to my issue_form

    ....waiting ..


    • Edited by iamsad Saturday, February 25, 2012 12:41 PM missed sothing
    Saturday, February 25, 2012 12:39 PM
  • The dispose method makes an object unusable so not so clever to use that one, while normally there is not any need for it. In a by the designer created form is an implementation of IDisposable done.

    As it does not harm currently, then you create is probably somewhere new again.

    If your form is a dialog form however, then it makes sense to use the dispose method (or better using) as that is not included in the components of a form.


    Success
    Cor

    • Marked as answer by Kee Poppy Thursday, March 8, 2012 9:19 AM
    Saturday, February 25, 2012 2:14 PM