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

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,918 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,203 questions
{count} votes

Accepted answer
  1. Castorix31 86,491 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.