window class name
C#
2
Posts
2
Posters
0
Views
1
Watching
-
anyone knows how I can change the window class name of a winform? now I get something like "WindowsForms10.Window.0.app4"
-
anyone knows how I can change the window class name of a winform? now I get something like "WindowsForms10.Window.0.app4"
Override
CreateParams
in your derivative class and set theCreateParams.ClassName
. If this is not an existing Window class, you'll need to P/InvokeRegisterClassEx
and call it prior to creating any instances of your new control class. See http://pinvoke.net/default.aspx/user32.RegisterClassEx[^] for more information. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]