run some methods after the form is fully loaded

ahmed omar 181 Reputation points
2022-12-27T13:23:32.763+00:00

Hello ,

I have a winform that perform some sql queries during the loading which cause the application performance issue during the loading .

so is there any way to perform this query after the application is fully loaded.

thanks in advance

Developer technologies | Windows Forms
Developer technologies | C#
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2022-12-27T13:29:49.63+00:00

    You could put the queries inside a Task or a Thread, like a BackgroundWorker : BackgroundWorker Class

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.