473,772 Members | 3,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resizing controls when screen resolution changes

Can anybody tell me how or refer me a link where I can find the client side
javascript to make the positions and resizing of the controls on .aspx page
independent of screen resolution. As I am using Grid layout and it uses
pixel units.

Thanks.

Nov 18 '05 #1
2 2945
It would be far easier to use the flow layout. Also IMO controls should be
resized only for non input controls (that should have by default the
appropriate size for the data).

For example :

<table width="100%" align="center">
<tr>
<td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah</td>
<td><input type="textbox" size="80"></td>
</tr>
</table>

Note that the "Blah" text will be displayed on a single or multiple lines
depending on the width of the window....

Patrice

--

"Mustufa Baig" <mu*****@benepe n.com> a écrit dans le message de
news:O5******** ******@TK2MSFTN GP10.phx.gbl...
Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution. As I am using Grid layout and it uses
pixel units.

Thanks.

Nov 18 '05 #2
see position and width:

http://msdn.microsoft.com/workshop/a...asp?frame=true

everything else is just math.

first pass - readjust width of objects.
second pass - readjust location.
-- bruce (sqlwork.com)

"Patrice" <no****@nowhere .com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
| It would be far easier to use the flow layout. Also IMO controls should be
| resized only for non input controls (that should have by default the
| appropriate size for the data).
|
| For example :
|
| <table width="100%" align="center">
| <tr>
| <td>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah
| Blah Blah</td>
| <td><input type="textbox" size="80"></td>
| </tr>
| </table>
|
| Note that the "Blah" text will be displayed on a single or multiple lines
| depending on the width of the window....
|
| Patrice
|
| --
|
| "Mustufa Baig" <mu*****@benepe n.com> a écrit dans le message de
| news:O5******** ******@TK2MSFTN GP10.phx.gbl...
| > Can anybody tell me how or refer me a link where I can find the client
| side
| > javascript to make the positions and resizing of the controls on .aspx
| page
| > independent of screen resolution. As I am using Grid layout and it uses
| > pixel units.
| >
| > Thanks.
| >
| >
| >
|
|
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
18836
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that they are too big and wind up covering up some of the fields on the main form. Is there any good code out there that works in a similar fashion that will also either a) stretch the form width wise on widescreens or b), rely on height rather than...
1
2285
by: farukh | last post by:
dear sir i want to resize my controls when the user changes the monitor resolution. so my problem is i am not know the event which should be fire when the resolution changed i try form_Resize but it does not work well. and tell me the short way for tackling this problem. thnx alot.
4
6145
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it with: this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); But it doesn't work.
1
2256
by: Mustufa Baig | last post by:
Hello, Can anybody tell me how or refer me a link where I can find the client side javascript to make the positions and resizing of the controls on .aspx page independent of screen resolution. As I am using Grid layout and it uses pixel units. Thanks.
7
51397
by: mukeshgupta.WD | last post by:
Hi, i have seen in many web sites, the size of pages are automatically resized according to screen resolution. generally we create web layout for 800x600 but if we view it in1024x768 then the page open have wide space on right. Is there any kind of coding to overcome this situation.like when we wiew the page created in 800x600 in 1024x768 resol. then it atomatically resized to full screen without having any scroll on browser.
5
6208
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in either resolution 800 X 600 or 1152 X 864 it takes up the entire explorer size. In screen resolution 800 X 600, if I insert a pictures of 24 X 24 pixel in the cells it takes up the entire cell size (ideally it should as the cell size is also 24 X...
8
8447
by: Steve | last post by:
Hi All I have written some code to rescale my windows forms application forms depending on the users screen resolution The application is designed for 1024 x 768 but some customers have 19" screens and want to use 1280 x 1024 etc I am using vb.net 2005 Code sample..............................................................
14
2358
by: zubair1 | last post by:
Hello, I am want to Resize my form and form controls based on the users resolution. For example :- i am making this application in 1024x768. it obviously works and looks well too me but when my user runs this application on his pc it looks horrible and wierd because his Resolution is 800x600. I found a snippet on this forum to resize the window but that just isn't what i'm looking for - i want the controls and form both to resize...
2
1691
by: ojhashankar | last post by:
hi all, i have developed the windows application in 1024*768 resolution. its working fine it that resolution. but when i reduce the resolution to the 800*600 , all the controls are not shown properly i.e. they are out of the page . Can any one help me? how my application will automatically adjust to screen resolution. also monitor size is not uniform , in samll monitor i cant see all controls. thanks in advance.
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.