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

J

Jheitmuller

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
 
D

David Coe

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top