I need to copy a contro from one form to another form
I find the SetParent Api. but this Api only moves a control from one form to
Is there any Api to copy controls?
Anyone can help me?
>I need to copy a contro from one form to another form
>I find the SetParent Api. but this Api only moves a control from one form
>Is there any Api to copy controls?
What you _can_ do, is create a new control and move that one to the other
form (with Setparent). In VB6 you can use Controls.Add. In VB5, you must
have a control array (i.e. the Index property of the original control must
not be Null) and then use the Load command to create another control in the
MS Dev MVP
I am trying to create a single palette (for 256 color mode displays) for
a whole form. I figured out by looking at the source that I needed to
override .GetPalette and respond to the WM_ palette messages.
Infortunately I did not get any result.
The form is scattered with controls that all use some 'strange' colors
due to "design", and they are ugly in 256 color modes. Is there a simple
way to have a single palette for the whole form or even the whole app.?
The colors that need to be in the palette are known in advance, not only
at run time, and do not change during the session.