designer deletes controls

A

Al

Hi!

Can anyone give me some advice on how to prevent studio
designer from surprising deletion of the custom controls
from main form.
 
A

aw

1. Try to modify Your object to avoid Designer errors (rather difficult)
2. Don't use Designer and ViewCode while modyfing object (in VS 2003)
3. Don't use Designer at all ...
Hi, AW
 
J

Joe White

Make sure that the form is the first class declared in the .cs file.
I've read some posts saying that the designer does strange things
(including deleting controls) if you put another type declaration before
the form declaration.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top