vb6 cloning a component on another form



Hi all,

I'm running out of controls on my main form (form1). So I've devised a plan
to store the controls in another form(form2), and have it's contents loaded
on the main form when required, then release it from memory afterwards.

The main form has frame1, which I plan to copy the contents of form2 onto
it.
Form2, has a frame which has several other components on top of it.

This is my code

----------------------------------------------------------------
Dim f As Form2.Frame1
Set f = New Form2.Frame1
f.Parent = Form1.Frame1
----------------------------------------------------------------

How can I get it to work they way I want it to, without building an ocx?


thanks

Astro


.



Relevant Pages

  • RE: Memory corruption, problem closing multiple forms.
    ... My appliation is a import tool so they don't just have groupbox ... They have different controls and datagrids on each of the form. ... the form2 or form3 and not the formMain. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Memory corruption, problem closing multiple forms.
    ... groupBoxes that 'simulate' a form each, each groupBox of which contains the ... controls that you want to collect data in. ... the form2 or form3 and not the formMain. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Memory corruption, problem closing multiple forms.
    ... groupBoxes that 'simulate' a form each, each groupBox of which contains the ... controls that you want to collect data in. ... the form2 or form3 and not the formMain. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Memory corruption, problem closing multiple forms.
    ... The reason I suggested use of group boxes that contain your data controls is ... When you hide the GroupBox, all the contained controls will also be ... the form2 or form3 and not the formMain. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Using a form purely programatically - by proxy.
    ... So the idea was to get the graphics of the WinForm controls from elsewhere, ... Then translate the clicks on Form1 to Form2 so that the controls are ...
    (microsoft.public.dotnet.languages.csharp)