473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Design time panel weirdness

Is there a way to make a Panel (or other control that can contain child
controls) so that it will size correctly at design time (based on CSS)?

Panel seems to be doing something weird at design time. I have a CSS with a
class .test { width: 40em } for example. If I drop a Panel on the page,
Clear the Width, Height and set CssClass to test, and put styleSheetTheme in,
the rendered size of the panel doesn't change at design time (works great at
run-time).

At first I thought this was a bug in design time rendering of the panel so I
created a class inherited from Panel and over-rode the Render method so that
it basically emits:
<div class="myclass">
child contents here
</div>

Oddly enough, the experience at design time remained unchanged. I'm
probabbly missing something really basic, but any help is appreciated.
Feb 8 '06 #1
0 868

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: gerrymcc | last post by:
Hello, I hope it's okay to post to the three groups simultaneously. I've got a set of four applets, all of which use the same GUI, except for one change. I want to reuse the 100+ lines of setup...
0
by: thivi | last post by:
hi all i am developing an user control in which i am creating a set of menu objects in a panel.. i have overriden the oncontroladded and painting. whenever i add the menu object i add it to the...
2
by: WebWacker | last post by:
Hi, I'm trying to write a Control (inherited from Control) which contains four panels. These panels are created in the constructor, and are read-only. The individual properties of the panels...
4
by: Dennis | last post by:
I am trying to set the default design proerties in a control I have derived from the Panel Class. I thought I'd found how to do it from the MSDN but the following line doesn't work: Inherits...
4
by: Daniel | last post by:
Hey guys Anyone know if it is possible to add a button at design time and place it over the top of a directx window? For example checkboxes, standard buttons, menus etc? If so how?
6
by: Brett Romero | last post by:
How can I add design-time support to a custom control in VS.NET 2005? Thanks, Brett
12
by: Adil Akram | last post by:
I'm using VS 2005, .net 2.0 for a desktop application (Window Form app). I can't set ZOrder of Panel control neither at design time by toolbar/menu command "Bring to Front"/"Sent to Back" nor at...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
1
by: rizwanahmed24 | last post by:
Hello I want to capture the event generated when a control (from toolbox) is added on to the panel at design time. I tried overriding OnControlAdded method, and capturing ControlAdded event but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.