I have suspicions that ReadAllText works unacceptably bad, the fact is that forms appear with a change in transparency from zero to one, and that's when a form with a TextBox is called (without background images), and a very 40kb txt file is loaded into TextBox noticeable changes in the rate of change of transparency

this->Opacity = i + 0.1; 

Roughly speaking - it slows down! Do not think my computer is not weak for this operation.

  • 2
    Try to ask one question in one topic. - AK
  • @Smirnov I cut topic 2 out of the question. Please make out individual topics with separate questions - this is the accepted way - PashaPash
  • omg The question was one "Who can say something about this?". And I am sure the answer will concern both the 1st topic and the 2nd ... - Smirnov
  • one
    ok - about this "in winforms, like in other frameworks, there may be performance problems if the code is written crookedly. show the code" - PashaPash
  • 2
    File operations should always be done in a background thread. If the user fell asleep screw, he should not see hung UI your program. Disk read performance is not guaranteed to anyone. - VladD

0