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 / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

Creating forms!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Atmapuri - 21 Jan 2008 15:31 GMT
Hi!

How can I create a custom Form() within a component
and have it create a proper handle? Currently i can call
CreateControl but there is no effect. Should I assign a parent?

Where do I get the parent from, (hopefully without the explicit
reference to the main form).

Thanks!
Atmapuri
Ignacio Machin ( .NET/ C# MVP ) - 21 Jan 2008 15:36 GMT
Hi,

Can you be more especific, I did nt understand your question.

Signature

Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.

> Hi!
>
[quoted text clipped - 6 lines]
> Thanks!
> Atmapuri
Nicholas Paldino [.NET/C# MVP] - 21 Jan 2008 16:08 GMT
Atmapuri,

   From the documentation for the Handle property on the Control class
(which Form derives from and does not override):

The value of the Handle property is a Windows HWND. If the handle has not
yet been created, referencing this property will force the handle to be
created.

   So, just access the Handle property.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi!
>
[quoted text clipped - 6 lines]
> Thanks!
> Atmapuri

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.