jedion
jedion

Reputation: 632

Enhance UI Responsiveness in c#

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

Upvotes: 2

Views: 188

Answers (1)

Michel Keijzers
Michel Keijzers

Reputation: 15367

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).

Upvotes: 2

Related Questions