Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Setting the "ClassName" of a .Net Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Maghen - 20 Sep 2004 09:55 GMT
Hi. If I do a Win32 GetClassName() on the handle of one of my Form objects, I
get something like "WindowsForms10.Window.8.app3". Is there any way for me to
set, either at design-time or run-time, the ClassName of my form so that it's
something more meaningful than this?

Also, how does are these ClassName strings generated and do there dot
notations have any meaning?

Thanks.

Alex
Stoitcho Goutsev \(100\) [C# MVP] - 20 Sep 2004 14:53 GMT
Hi Alex,

Windows Forms framework uses bunch of window classes for different type of
controls. Thus all the control of the same type share the same window class.
Because to object orientation is moved from Windows OS to the framework you
don't have to care what is the actual window class. I know it's a drag when
one uses tools like Spy++, but is is not possible to just change the class
name.
Anyways you can change the window class by overriding CreateParams property,
but bare in mind that you can't just change the name you have to provide
name of registered window class

Signature

HTH
Stoitcho Goutsev (100) [C# MVP]

> Hi. If I do a Win32 GetClassName() on the handle of one of my Form
> objects, I
[quoted text clipped - 10 lines]
>
> Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.