Lost controls

  • Thread starter Thread starter hugh
  • Start date Start date
H

hugh

Hi,

I copied a exsisting window form and code to a new form,
and some controls are not visible on the new form. But I
can see from the code that the events associated with the
controls are still there. I even could not add the new
controls with the same name, which means that the controls
are still there. Where are the controls and how do I fix
the problem?

Thanks.

Hugh
 
Hi Hugh,

Open the form in the designer and look at the 'Location' property of the
controls that are not visible. They probably have a location that is off
the form's visible client area.

Gary
 
Hi Gary,

First, thanks for your help. The question is that how can
I select the control to see property if the control is not
visible?

Hugh
 
Hi Gary,

Yes, Gary. I did take a look at the properties "location"
of lost controls. They have reasonable values and are
marked as visible.

Hugh
 
Select the control from the dropdown box in the Properties window. If the
properties window is not visible, press F4 to load it...
 
Hugh,

Open your form's code and expand the 'Windows Form Designer generated code'
region, then paste the code from the 'InitializeComponent' procedure into a
reply post so we can see if there is anything else that looks amiss with
your control properties.

Gary
 
Back
Top