Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8339691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:57:00+00:00 2026-06-09T04:57:00+00:00

I have a User Control called EmployeesCheckBoxList, which just contains a standard CheckBoxList that

  • 0

I have a User Control called EmployeesCheckBoxList, which just contains a standard CheckBoxList that is populated with Employees. I can easily create properties in my EmployeesCheckBoxList that get/set the Width/Height of the CheckBoxList within my UserControl:

public Unit Height
{
    get { return cblEmployees.Height; }
    set { cblEmployees.Height = value; }
}

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

And then in my .aspx page I can set the Width and Height at runtime with:

<MyUserControls:EmployeesCheckBoxList runat="server"
    Height="100px" Width="150px"/>

And those properties properly alter the dimensions of the Web Control inside my User Control.

What I’d like to know is, is it possible to alter the dimensions of the entire User Control, rather than just take the values as properties and then modify the controls within the User Control?

For example, let’s say my User Control also had other web controls in it, like a Button. If I set the above Height and Width properties to 100px and 150px, what I would LIKE to achieve is not modifying each web control with those measurements, but rather set the viewable space of the User Control to those dimensions. Meaning that in the case of a CheckBoxList full of Employees and a Button, and set the dimensions to 100px by 150px, the entire contents of the User Control wouldn’t fit, and the User Control would become scrollable within those dimensions.

This is how the regular CheckBoxList works. If you have like 100 items in it, but set the Height to 100px, only a few items are visible at once, and the list is scrollable within that 100px space.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:57:02+00:00Added an answer on June 9, 2026 at 4:57 am

    Use a div in your user control and set the width and height properties to it. Also include overflow:scroll under it’s style.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a user control, GridMasterControl which contains (amongst other things) another control called
I have an ASP.NET Page that contains a User control called ReportCtrl (my own
I have a user control which contains a textbox. I have a class called
I have a custom user control called ErrorNotificationBox. To place that on my page
Hi I have created a user control which is inside a folder called Controls
I have a user control which is called MyControl. And it is used in
I have a user control called GameButton that has a label inside it. When
I have an issue currently that I can't resolve. I have a user control
I'm using VB.Net. I have a WPF User Control called NavigationPanel which I created
I have a custom WPF user control called a TimeoutPanel that I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.