I read this in Windows Forms FAQ and made as described. But when I rebuild my project custom dialog name was changed into class name of custom dialog.
// I have some UserControl class
class MyControl : UserControl
When I place it to my form I recieve some myControl1 variable but after rebuild I recieve new variable MyControl and old variable become unassigned.
P.S. Sorry for my English ;)