CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 10/27/2003 1:32:08 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
benny2k1
Asp.Net User
Resizing controls in the designer10/27/2003 1:32:08 PM

0/0

I have developed a composite control which contains a Table:


[Designer( typeof(CompositeControlDesigner) ) ]
public class TestControl : WebControl, INamingContainer
{
public TestControl()
{
}

public override ControlCollection Controls
{
get
{
EnsureChildControls();
return base.Controls;
}
}

protected override void CreateChildControls()
{

Table t = new Table();
TableRow tr = new TableRow();

TableCell td = new TableCell();
TableCell tdtwo = new TableCell();

td.Width = Unit.Percentage( 80 );
tdtwo.Width = Unit.Percentage( 20 );

td.Text = "cell one";
tdtwo.Text = "cell two";

tr.Cells.Add( td );
tr.Cells.Add( tdtwo );

t.Rows.Add( tr );

this.Controls.Add( t );
}
}


The designer for this control looks like so:


public class CompositeControlDesigner : ControlDesigner
{
public override string GetDesignTimeHtml()
{
ControlCollection controls = ((Control)Component).Controls;
return base.GetDesignTimeHtml();
}

public override void Initialize(IComponent component)
{
if (!(component is Control) &&
!(component is INamingContainer))
{
throw new ArgumentException(
"Component must be a container control.",
"component");
}
base.Initialize(component);
}
}


The problem is when you grab the handles in the designer and resize the control, the contents do not resize as you would expect. If you save and load the page in the browser it works fine and the contents are the correct size but it doesn't get refreshed in the designer properly.

Also, where and why does the SPAN control get added to the Controls collection?
Ben

My Blog
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Special Edition Using Visual Basic.Net Authors: Brian Siler, Jeff Spotts, Pages: 830, Published: 2002
Special Edition Using HTML and XHTML Authors: Molly E. Holzschlag, Pages: 700, Published: 2002
Essential Visual Basic 5.0 Fast: Includes ActiveX Control Development Authors: John Cowell, Pages: 235, Published: 1997
Windows Forms Programming in C# Authors: Chris Sells, Pages: 681, Published: 2004
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 618, Published: 2001
The Unofficial Guide to Access 2007 Authors: Jim Keogh, Pages: 638, Published: 2007
Mastering Visual Studio .NET Authors: Ian Griffiths, Jon Flanders, Chris Sells, Pages: 397, Published: 2003
MCAD/MCSD: Developing and Implementing Windows-Based Applications with Visual Basic. Net and Visual Studio. Net Authors: Mike Gunderloy, Ed Tittel, Pages: 1109, Published: 2003
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
Mastering Visual Basic .NET Authors: Evangelos Petroutsos, Pages: 1153, Published: 2002

Web:
Resize control with Verbs in Windows Forms Design Time the verbs to resize the control at design time the control itself is resized, but the resize handles in the designer are not updated - they ...
Resizing Controls, Component - for .Net ASP.Net Java ActiveX ... Form Designer .NET V2.51 - Form Designer .NET allows you move and resize any control on your .NET application form at runtime. You need not prepare your ...
FastForm 3.7.32 - Form resize and design control for VB6. Features ... Apr 12, 2007 ... Fastform is a true resize and form design control Simply drop a Fastform control onto your form and easily control the look and operation of ...
CodeProject: Allow the User to Resize Controls at Runtime. Free ... Enable resizing of controls on a form at runtime with this class and two lines ... NET forms designer). You could also add the ability to grab a corner and ...
CoDe Magazine - Article: Design and Use of Moveable and Resizable ... Windows are moveable and resizable; graphics and controls inside applications are not. This article explains the design of moveable/resizable graphics and ...
Application Design: Resizing the Controls Before resizing a control, as mentioned already, first select it. ... The Form Designer will calculate the sum of the heights of all controls and find their ...
Resizing problem in design mode - ASP.NET Building Controls Resizing problem in design mode ASP.NET Building Controls. ... When I resize this control in design mode the following happens: the ...
Design and Use of Moveable and Resizable Graphics, Part 1 Apr 8, 2008 ... Typically, you cannot move graphics or controls nor resize them. .... You can and must look on the design of moveable/resizable graphics ...
Resize Control: Image Resize Gallery, TSelectOnRunTime, FastForm ... Form resize and design control for VB6. Features auto scaling of ... Hi-tech runtime form designer.It allows you move and resize any control on your form. ...
Resize Web User Control in Design-Time - ng.asp-net-forum ... Resize Web User Control in Design-Time, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005, Date: 8/8/2007 4:02:14 PM, ...

Videos:
How to Edit Digital Images : How to Resize JPEG Photos in ... When resizing an image in Microsoft Paint, press control-w to bring up screen which allows users to adjust horizontal and vertical percentages of ...
Aurubooxe PSC The Aurubooxe PSC PSC stands for "Personal Supercomputer" and that's what it basically is. The latest Intel mobile processors and hybrid graphics ...
The Servant - Seduction Scene http://uraniumcafe-the.com Sarah Miles seduces James Fox in The Servant From www.http://britmovie.co.uk/ The Production Team Director ...
mattress production equipment,spring mattress machines Product Description: LR-PSA-125P Pocket Spring Assembly Machine is a high-performance machine. In addition to all the functions of the old-type ...
ShopNBC Samsung NV7 7.2MP Digital Camera, HP A612 Printer ... Features 7.2MP CCD captures enough detail for photo-quality 15x20" prints State of the Art 7x optical zoom OPS (Optical Picture ...
LittleBigPlanet [PS3 Beta] It all begins in an open area where the player, a little burlap guy named "Sackman," has total power over his world. To use that influence ...
pocket spring assembly machine, pocket springs coilers Product Description: LR-PSA-125P Pocket Spring Assembly Machine is a high-performance machine. In addition to all the functions of the old-type ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...




Search This Site:










dnn 4 active directory authentication problems

any server & network monitoring module

permission denied writing to a file

server controls wont show up

user credentials requested on domain load

vb.net: how to convert hexadecimal number to normal (decimal) number?

composite control and webform

newbie idiot (me) deleted default portal ...

sql in asp

copy web

printing large document

how to populate a listbox based on selection

problem in map

get password answer

changing the theme programaticly in the web.config

authenticated vs anonymous url issue coming from navigation database

check status before loading a page

sql server 2000 membership db

listing filenames from within subdirectories

public varibales

masterpage problem

using multiple membership and role providers

how to replace dnn menu with flash menu

1.1 formsauthentication.signout() question

not able to drop field on report designer rdlc file

q: horizontal menu - varying width for top elements ?

need a sharepoint web part.

simple permission question...

dnn 4 module

accssing a control in a repeater without knowing the field type

 
All Times Are GMT