Open a UserControl inside a panel

0
0

Hi !

 

I would like to open/put a userControl inside a panel but when I try to do a “panel1.Controls.Add” nothing happen (please, see attateched sample). What I´m doing wrong ?

Best regards,

Fabio Marcos

 

  • You must to post comments
0
0

Thank you, it´s working now.

  • You must to post comments
0
0

Fabio,

your UserControl is missing a constructor. Add this to Page3:

public Page3()
 {
    InitializeComponent();
 }

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.