Panel problem

A

acko bogicevic

Hi
I have three panels on page and every panel contains a few controls.
How can i move panels through code on the other position on page.
I want to click a button and one panel to be visible and the other not.
There is a property Visible and it is easy but how can i change
something like Top, left...
Thanks
Aleks
 
S

S. Justin Gengo

Acko,

Top and left positions are controlled with style tags.

You could set the style tags via the panels Attributes method.

It would look something like:

Panel1.Attributes.Add("style", "Z-INDEX: 101; LEFT: 160px; POSITION:
absolute; TOP: 208px")

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 

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

Top