how to register a custom class name in c#?

  • Thread starter Thread starter jay
  • Start date Start date
Hi:
i want register a window form's classname for use win32api findwindow(
classname,title ),but i can't define classname,how to do it in c#?

thanks a lot.
 
jay said:
i want register a window form's classname for use win32api findwindow(
classname,title ),but i can't define classname,how to do it in c#?

I'm afraid I don't know that one...
 
i want register a window form's classname for use win32api findwindow(
classname,title ),but i can't define classname,how to do it in c#?

For registering a class name you still have to use the
RegisterClass[Ex] Win32 API.

To set the class name a managed Control should use you can override
the CreateParams property getter and return it.

However, the Windows Forms library will register an appdomain specific
subclass of that given class and use that instead, so you can't really
set the actual class name used.



Mattias
 
Back
Top