Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing user control

Status
Not open for further replies.

mbde

Programmer
Mar 14, 2005
55
US
I though it would be very simple but I can not get it today.

I have a user control, with a grid control contained in it.

public Unit Width
{
get
{
return CustomerGrid.Width;
}
set
{
CustomerGrid.Width = value;

}
}

I expose the width property and when I set it in the designer it works at run-time but not design time.

What class do I inherit from or method to override to get my controls to function at design time.

Note I tried to inherit from WebControl but got the message

Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class
 
I expose the width property and when I set it in the designer it works at run-time but not design time.
I would assume this is because the Width property of the grid is set indrectly via UnitWidth on the user control. the designer.

In any case you should not make coding decisions based on the designtime experience.

your code if fine just the way it is.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top