how to register a custom class name in c#?

  • Thread starter Thread starter jay
  • Start date Start date
J

jay

Hello All:

I want to register a dynamic class name in c#,how to make it ?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top