How does the Control create a handle in general?

燕鹏 李 301 Reputation points
2022-05-23T15:14:57.403+00:00

When I debug the OnHandleCreated function which inherits from Control, I find that Handle has a non-null value, so I know that the OnHandleCreated method is a method that call the event handler of HandleCreated. But how the Control create its handle?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,817 questions
{count} votes

0 additional answers

Sort by: Most helpful