Enhance UI Responsiveness in c#

197 views Asked by At

I have created an POS application using Dynamic buttons, dynamic table layouts, and other controls in one form. The generated dynamic buttons is based on the number of data queried from the database(using OPEN ACCESS ORM).

My problem is whenever I run the application, the UI responsiveness is slow. For Example when I click on a category button, the sub category buttons appears (These are dynamic generated buttons), for it to appear, it would take few seconds to appear, then there are some little flash on the screen.

What will I do? What strategy should I perform.

Thank you. So much

1

There are 1 answers

1
Michel Keijzers On

Make sure the buttons do not have time consuming actions. And if they do:

  • use a waitcursor (simple solution, but not liked by most users)
  • use a thread to perform the action (might complicate other actions regarding thread safety).