🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #22

Re: vcl .net components in winforms

#22
From: Arie Zilberstein
Date: Wed, 04 Oct 2006 10:48
19 lines
1689 bytes
Hi,

Yes, it's possible, but with a good amount of hair-pulling.
The first thing you need to do is set your VCL.NET control's ParentWindow 
property to the Handle property of the containing WinForm.
The rest involves various workarounds to make it look smooth. For example, 
some events of the WinForm have to be handled and "delegated" to the VCL.NET 
control, e.g. the Resize and others.

Regards,
Arie

"Jesse Calato" <jcalato@harriscomputer.com> wrote in message 
news:4522cf38$1@newsgroups.borland.com...
>
>>> Is it possible to use vcl .net components in WinForms?
>>Please don't multipost.
>
> Sorry about the multipost.  Is it possible? 
Technical Details
Message-ID: <45239193$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45217487$1@newsgroups.borland.com> <8yqt8mui2oul$.dlg@dlg.marcrohloff.com> <4522cf38$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,c99f59e38edc8162
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Arie Zilberstein" <azilberstein@mercury.com>
Newsgroups: borland.public.delphi.winforms.controls.using
References: <45217487$1@newsgroups.borland.com> <8yqt8mui2oul$.dlg@dlg.marcrohloff.com> <4522cf38$1@newsgroups.borland.com>
Subject: Re: vcl .net components in winforms
Date: Wed, 4 Oct 2006 12:48:51 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 192.118.45.2
Message-ID: <45239193$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1159958931 192.118.45.2 (4 Oct 2006 03:48:51 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail