Z
zhaodapu
I derived a panel class:
public class DeskPanel : System.Windows.Forms.Panel
Now I want to use the visual designer to add controls in MyPanel
class. But I noticed that the visual designer didn't work.
I try some other ways, and found the if i derived my panel from
UserControl class it works. However, I thought deriving from Panel is
more rational. I have several panels (such as calendar panel, contacts
panel, photo viewer... and I will switch them in my main form base on
the user choice)
public class DeskPanel : System.Windows.Forms.Panel
Now I want to use the visual designer to add controls in MyPanel
class. But I noticed that the visual designer didn't work.
I try some other ways, and found the if i derived my panel from
UserControl class it works. However, I thought deriving from Panel is
more rational. I have several panels (such as calendar panel, contacts
panel, photo viewer... and I will switch them in my main form base on
the user choice)