473,788 Members | 2,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form size with different client resolutions

My Web forms display differently on different machine with the same
resolution. The pages are designed to fit in 800*600 res but on some
machines with 800*600 the form appears too big.

Are there any built in functions to adjust the form based on resolution?
Is there a way to detect the clients resolution?
1 last one, when using an image, how do I get the image to stay
proportionate when reduced?

Thanks,
Joe
Nov 18 '05 #1
5 1874
What type of positioning are you using for your form elements?

Something like this:

<form runat="server" id="myForm>
<input type="text"><br />
<input type="submit">
</form>

will look the same no matter what size the browser is. I would start by
looking at how you are positioning your form elements (eg are they
positioned relative to the size of the browser?)

Cheers
Ken

"Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
news:eH******** ******@TK2MSFTN GP11.phx.gbl...
: My Web forms display differently on different machine with the same
: resolution. The pages are designed to fit in 800*600 res but on some
: machines with 800*600 the form appears too big.
:
: Are there any built in functions to adjust the form based on resolution?
: Is there a way to detect the clients resolution?
: 1 last one, when using an image, how do I get the image to stay
: proportionate when reduced?
:
: Thanks,
: Joe
:
:
Nov 18 '05 #2
what does input type do?

Also, how do I set the positioning relative to the browser?

(forgive me, I'm new to this stuff. Buying a book in the morning - any
suggestions?)

Thanks,
Joe

"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:uQ******** ******@tk2msftn gp13.phx.gbl...
What type of positioning are you using for your form elements?

Something like this:

<form runat="server" id="myForm>
<input type="text"><br />
<input type="submit">
</form>

will look the same no matter what size the browser is. I would start by
looking at how you are positioning your form elements (eg are they
positioned relative to the size of the browser?)

Cheers
Ken

"Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
news:eH******** ******@TK2MSFTN GP11.phx.gbl...
: My Web forms display differently on different machine with the same
: resolution. The pages are designed to fit in 800*600 res but on some
: machines with 800*600 the form appears too big.
:
: Are there any built in functions to adjust the form based on resolution?
: Is there a way to detect the clients resolution?
: 1 last one, when using an image, how do I get the image to stay
: proportionate when reduced?
:
: Thanks,
: Joe
:
:

Nov 18 '05 #3
you users are probably using different font sizes. unless you can control
the fonts and resolution of your users' machines (say thru sms), you should
not use grid layout or you have this problem.

if you want to use grid layout and con not control the font size and screen
resolution, then you need to write client code that adjusts the widths of
the controls and recalcs the offsets.

client code can detect the screen resolution and send it to the server, but
it can not directy know the font size. the best you can do is render some
know text, then send back to the server its actual rendered width and
height. you would do this on a sniffer page.

-- bruce (sqlwork.com)

"Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
news:eH******** ******@TK2MSFTN GP11.phx.gbl...
My Web forms display differently on different machine with the same
resolution. The pages are designed to fit in 800*600 res but on some
machines with 800*600 the form appears too big.

Are there any built in functions to adjust the form based on resolution?
Is there a way to detect the clients resolution?
1 last one, when using an image, how do I get the image to stay
proportionate when reduced?

Thanks,
Joe

Nov 18 '05 #4
I suggest you get a book on HTML then

<input type="text">

is the HTML that creates a standard text input box on a browser. The <input
type="submit"> creates the standard grey button that is used to submit a
form.

Cheers
Ken
"Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
news:uQ******** ******@TK2MSFTN GP11.phx.gbl...
: what does input type do?
:
: Also, how do I set the positioning relative to the browser?
:
: (forgive me, I'm new to this stuff. Buying a book in the morning - any
: suggestions?)
:
: Thanks,
: Joe
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:uQ******** ******@tk2msftn gp13.phx.gbl...
: > What type of positioning are you using for your form elements?
: >
: > Something like this:
: >
: > <form runat="server" id="myForm>
: > <input type="text"><br />
: > <input type="submit">
: > </form>
: >
: > will look the same no matter what size the browser is. I would start by
: > looking at how you are positioning your form elements (eg are they
: > positioned relative to the size of the browser?)
: >
: > Cheers
: > Ken
: >
: > "Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
: > news:eH******** ******@TK2MSFTN GP11.phx.gbl...
: > : My Web forms display differently on different machine with the same
: > : resolution. The pages are designed to fit in 800*600 res but on some
: > : machines with 800*600 the form appears too big.
: > :
: > : Are there any built in functions to adjust the form based on
resolution?
: > : Is there a way to detect the clients resolution?
: > : 1 last one, when using an image, how do I get the image to stay
: > : proportionate when reduced?
: > :
: > : Thanks,
: > : Joe
: > :
: > :
: >
: >
:
:
Nov 18 '05 #5
Thanks. I'll pickup an HTML book. Any recommendations ?
"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:Op******** ******@TK2MSFTN GP11.phx.gbl...
I suggest you get a book on HTML then

<input type="text">

is the HTML that creates a standard text input box on a browser. The <input type="submit"> creates the standard grey button that is used to submit a
form.

Cheers
Ken
"Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
news:uQ******** ******@TK2MSFTN GP11.phx.gbl...
: what does input type do?
:
: Also, how do I set the positioning relative to the browser?
:
: (forgive me, I'm new to this stuff. Buying a book in the morning - any
: suggestions?)
:
: Thanks,
: Joe
:
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:uQ******** ******@tk2msftn gp13.phx.gbl...
: > What type of positioning are you using for your form elements?
: >
: > Something like this:
: >
: > <form runat="server" id="myForm>
: > <input type="text"><br />
: > <input type="submit">
: > </form>
: >
: > will look the same no matter what size the browser is. I would start by : > looking at how you are positioning your form elements (eg are they
: > positioned relative to the size of the browser?)
: >
: > Cheers
: > Ken
: >
: > "Joe Bonavita" <JBonavita_@_ca minus.com> wrote in message
: > news:eH******** ******@TK2MSFTN GP11.phx.gbl...
: > : My Web forms display differently on different machine with the same
: > : resolution. The pages are designed to fit in 800*600 res but on some
: > : machines with 800*600 the form appears too big.
: > :
: > : Are there any built in functions to adjust the form based on
resolution?
: > : Is there a way to detect the clients resolution?
: > : 1 last one, when using an image, how do I get the image to stay
: > : proportionate when reduced?
: > :
: > : Thanks,
: > : Joe
: > :
: > :
: >
: >
:
:

Nov 18 '05 #6

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

Similar topics

21
2877
by: James Moe | last post by:
Hello, I just joined this group and saw the discussion "What do you think of resizing 1em to 10px?" I am somewhat confused by what y'all think should be used as a reference size. I was surprised that someone actually suggested ems as a reference. Ems are relative to a selected point size, the width in points of a capital M. If no point size is given, what size does an em become? The browser obviously must decide. Also setting the body...
23
3767
by: BobK | last post by:
Hello Everyone, I am updating the CSS for my site but want new and original page to appear the same. My original CSS permits small increments of zooming (ctrl/mouse wheel) so that you get perhaps 3 usable levels of zoom. The increments are small and it only has 4 zoom levels. Same thing with changing resolutions. When you change from 1280x1024 to 800x600 the page looks acceptable after changing the zoom a click or two.
9
3415
by: Les Juby | last post by:
I understand that there are several ways to effectively control the browser delivery of HTML to make the most effective use of the different screen resolutions today. (And in the foreseeable future...) I have a client with a text based site (displays a lot of labour law) which is being read in a range of resolutions and he wants a rewrite as a long term solution to browser resolution compatibility. My thinking goes........
3
1390
by: Salad | last post by:
What do you do when you've designed an app at 800x600 and you now want to make use of higher res?. It's an internal app and won't be distributed to the world. I'm sometimes asked to squeeze in a new field or two in a form that has most, if not all, screen real estate in use. I'll mention that the form is top/bottom/left/right filled in. The person will be looking at the form in high res and say "We have lots of room to insert it." ...
11
18837
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...
9
8734
by: Gidi | last post by:
I've created a program in C#, which includes several Forms. some of the forms are in different size, but i start all of them in Window Normal Size. I took the exe file from the \bin\debug library and started it on my computer and all the forms where at the same size as i programed it to be. then i took it to my friend's PC and it worked fine too (we both have NVIDIA display card), then i took it to another computer (with different display...
2
1149
by: Peter Oliphant | last post by:
I'm developing a program at home on a Windows Vista computer. In it I create a form with a few buttons on it that fill up the form's visible area. So, I took the application to work, where I use a Windows XP PRO computer. When I ran my program, the form visible area is different! Not very much, but it is obvious. I haven't done experiments yet, but it looks like the form is slightly wider and slightly shorter. I now have extra space on...
1
5606
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height appropriate for the typical screen resolution they were using. Now some users have decided to use higher screen resolutions, up to 1280/1024. When they maximize the form, that of course works but the size of the main form control containing the...
10
44087
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their screen. I used to write code in Java a few years ago (2005), and you could stretch a form with the mouse and all the controls and fonts would resize to larger or smaller size. Does .Net framework 3.5 support this kind of functionality? Or -...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9969
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
8993
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...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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
5399
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...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.