Eric Anastas
Eric Anastas

Reputation: 22213

User control blank on form in VS 2008

I've created a user control that contains a table layout control with various other standard controls like buttons and labels. Yet when I add the user control to one of my forms the control is blank. I've tried building the solution and a see the user-control flicker as if it's being updated, but it remains blank. Also if I actually run the program the usercontrol can not be see on the form.

I've used usercontrols like this in the past. Is there something I'm missing?

Upvotes: 0

Views: 859

Answers (2)

mwidev
mwidev

Reputation: 11

Check that you have add the default Constructor with InitializeComponent();

Upvotes: 1

Peter
Peter

Reputation: 38465

are you combinding autosize on the usercontrol with some sort of Dock, i know i had the same problem when i did so..

Upvotes: 0

Related Questions