[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Is it possible to dynamically size a control on a web form?

john

2/5/2004 4:26:00 PM

Hi, I'm transitioning from using VB.NET to create windows apps to
using VB w/ ASP.NET. On a Windows form I can use a control's anchor
properties to dynamically size and position the controls based on the
size of the parent form.

It looks like the same type of functionality could be achieved on a
web form with a user control or class derived from a base class web
control. Does anybody have an example of this that I can look at?
I've searched the web and news groups and not found anything like
this.

I'd like to create a user control that is smart enough to make full
use of the browser window at higher resolutiions.

Thanks,
John
1 Answer

David Coe

2/7/2004 6:06:00 AM

0

I'm not quite sure what you are asking here. However, there is typically a Height and Width property on a WebControl object. As far as the positioning of the control, you usually rely on the browser to handle that, unless you want to get into using JavaScript to do so.