Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Resize Of Treeview 1

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

Looking for ideas to solve this:
I have a treeview control, which looks great at 800x600 (default resolution of clients, hardcoded height/width). However, the "higher Ups" that are viewing it (and probably won't be using it, but thats another rant) have higher resolutions, so the treeview comes out small.

So what they want me to do is have it so that it resizes depending on how big the frame its being displayed in is. The only thing I can come up with is getting the screen resolution somehow from javascript, passing it to my code, and assigning a new height/width on the page load from there, but there's GOTTA be another way.

Thanks for your thoughts,

Jack
 
can't you just put it inside a 1-celled table and set the width of both the table and the control to 100% ?
I have done this and I have 2 pc's - one with a 17 inch monitor running 800x600 and one with a 21 inch monitor running 1280x1024 and both look good Chris says: "It's time for a beer."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top