473,804 Members | 3,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 883

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

Similar topics

1
1747
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 code for the GUI, but can't seem to do that because of the single line that changes. Cutting and pasting the redundant code works, but it's a pretty dull solution. The idea of the following is that I have an Answer class (subclass of Panel)...
0
1118
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 panel. panel is maintained by using an arraylist of menu objects.. the problem is as i have overriden paint, controladded is fired 3 times for each control 1)when i add the menu control to panel in design time - in which arraylist is maintained...
2
1758
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 can be set through the properties window, any changes will be visible in design-time. However, when I run the application, the properties are lost.
4
2445
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 System.Windows.Forms.Design.ControlDesigner I get an error saying that the Type is not defined. I cut and pasted all the imports and line from the MSDN. Would appreciate any help.
4
2874
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
1641
by: Brett Romero | last post by:
How can I add design-time support to a custom control in VS.NET 2005? Thanks, Brett
12
9139
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 run time by calling BringToFront method of panel. And Panel control doesn't support SetTopLevel method etc. I tried this while Dock=Fill and Dock=None but its not working at all. Please tell me how can I change Panel's ZOrder specially at run...
0
2513
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 don't work nearly as well as they should, even for analysts and power users. The reason they haven't reached the masses is because most of the tools are so difficult to use and reveal so little
1
2643
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 its not working. here are the steps: 1. Create a Panel 2. Add the panel to the form (not necessary)
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10575
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9144
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7616
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.