UserControl Behaviour on a Windows Form
Posted
by AK
on Stack Overflow
See other posts from Stack Overflow
or by AK
Published on 2010-04-09T10:28:39Z
Indexed on
2010/04/09
10:33 UTC
Read the original article
Hit count: 426
usercontrols
Hi,
I have a usercontrol UC1 with a combobox and a button. From the constructor, after initializing all the controls, I am populating the combobox with an array of information brought from other class library. I have kept the UC1 on windows form. When I tried to open the form's designer I see some errors and a suggestion to rebuild to fix the errors. After searching over net I found that the logic of populating the combobox is the culprit. I changed the code with an additional check of null and the issue is fixed now. My question is, how am i able to see the same usercontrol seperatly in designer view, but not when i placed the UC1 on a form and trying to see the designer view for the form? The same combobox populating logic should affect the drawing of UC1 when I try to see it in designer view right?
Thanks, AK.
© Stack Overflow or respective owner