Sizing The Form Based On Screen Resolution (1024x768, 1280x1024, Etc)?

Mar 25, 2011

I designed my form on my machine running 1282x1024. It works fine. I installed it on a client machine running 1024x768 and the form goes off the bottom edge of the screen. I set autoscale on the form to none, font, dpi, and inherited, changed my screen resolution and ran the program. It always looks the same, off the bottom os the screen. I tried Autoscroll on with no effect.

My reading of the documentation seems to indicate these two items are more for the system font size and the screen's dpi setting, not the screen resolution but I can't find anything else to work with. How do I make the form and everything on it change size based on the screen resolution?

View 4 Replies


ADVERTISEMENT

Change Resolution Of Form Based On Screen Resolution

Jan 10, 2011

I have a very high screen resolution on my laptop: 1400x1050.My colleague tried it out on his laptop (which had lesser resolution), and the application did not fit on his laptop. The buttons were dragging out of the screen space.So, I want my application to automatically resize/adjust based upon the screen resolution.I don't want to use Maximized screen option and don't want to change user's pc settings.Unfortunatly I am not using Table Layout panel.

View 5 Replies

Screen Resolution - Change The Size On The Form And The Button When Its Ran On A Different Resolution

Oct 22, 2007

I am working on an program and I need it to change the size on the form and the button etc when its ran on a different resolution then it was coded on. Is there anyway to do this easy or do I have to hard code it on two different and change it by like a button etc? I am working with a 1024 X 780 and a 1240 X 1024.

View 8 Replies

Setting Windows Form Resolution According To Screen Resolution?

Jun 18, 2012

Can we set the windows form resolution according to pc screen resolution and even the control should be adjusted...

eg.

My screen resolution is 1366 X 768

and my form size is 1254, 709....but I want it so set according to the screen and it will be dynamic...

if I transfer my project to some other pc with lower or higher resolution it should be adjusted....

and suppose I have few controls on the form...will that also be adjusted??

View 6 Replies

VS 2010 Set Form Resolution Like Current Screen Resolution

Dec 20, 2010

I had designed all forms on 1280/800 screen resolution.

i want set all forms resolution like the current screen resolution of the user,or make the form resolution is dynamic with each resolution of screen for

View 6 Replies

VS 2010 Auto-sizing Form Based On Text Box?

Jan 23, 2012

I'm trying to create my own custom "inputbox" (can't think of VB.Net term for the VB6 input box).

Anyways, I'd like to have a label & a textbox on my form along with 2 buttons. I want to let the label to grow based on the text that is in it. I know it has an autosize feature to it, and guess I can use that, how do I limit the width so that once it hits that limit it goes to a new line so that if I have a message or a question to pose to the user, it doesn't get too wide. Kind of like MessageBox.Show.

It'll be Label at the top, textbox under that, and the two buttons under that. I'd like the textbox to move up/down based on the size of the label, and the buttons to do the same along with the window not becoming too wide.

View 1 Replies

Resizing A Label And Font Of The Form Based On The Window Sizing?

Mar 1, 2012

I'm looking for help resizing a label's size and its font size based on its window size.That's to say when a window resizes, the label itself adjusts it font and background box to do the same.I know I'm triggering something on the Resize event of the form, but I don't know what.

View 2 Replies

Max Form Size Changes With Screen Resolution

Sep 1, 2009

Wondering if there was a way around the seemingly nonsensical editor changing of the maximum size form you can edit/create to some value approaching the screen resolution you are working on. This is a P.I.T.A. as I often edit pages on a laptop with a smaller max resolution than the monitors I typically do layouts for.Any way to by pass this to let me edit larger screen sizes on my laptop?

View 1 Replies

VS 2010 Form And Screen Resolution?

Sep 16, 2010

I've got a problem with vb 2010: If I make a new form and add every button and make a background for the application and built my app, I can't open normal on a other pc. It change the ordening of my buttons and the other pictur boxes I've add. My screen resolution is 1920x1080. The other pc has a screen resolution off 1024 X 768. What I wanna ask is: whitch code must I add on "form1"?

View 2 Replies

What Is The Standard Win Form Screen Resolution

May 3, 2010

how to enable the scroll ..

View 5 Replies

Screen Sizing - Max=stuck - Won't Get Off The Max Screen Size

Feb 11, 2011

VB.net / VisualStudio8 I have an application I've written that's been very stable. I had it set to exactly 1024x768 resolution, and to windowsstate=maximize (I think that's what it's always been).

I recently started coding to give the user the option to use the 1024x768 or to have the program detect the max size of the screen and use it.

That part works great... I'm using:

Dim MonitorWidth = Screen.PrimaryScreen.Bounds.Width
Dim MonitorHeight = Screen.PrimaryScreen.Bounds.Height
Me.Height = MonitorHeight
Me.Width = MonitorWidth

What I'm baffled by is that the application now won't get off the max screen size. It's using the max of the screen, even when I do not call the screen resizing code above. I'm trying to give the user the option of the application only taking up 1024x768 (and placed up to the top left) or maximizing the application using the full extents of the screen.

View 4 Replies

Adapting Form And Its Controls To Screen Resolution

May 26, 2012

I was wondering if, using API, there is a simple way to adapt exactly a form and its controls to the screen resolution.

View 12 Replies

Find Resolution Of Screen Form Is Currently Sitting In

Feb 2, 2012

I know I can find the screen resolution of the Primary screen easily, but I want to find the resolution of the screen that my form is currently sitting in (this is not the same on my setup I have three screens with two different resolutions)the form could span more than one screen so I would be happy with finding the screen that contains the most area of the form/the top left corner.Is there a simple way to do this? I can enumerate the screens, but then working out where my form is sitting within this is tricky:[code]

View 1 Replies

How To Make A Form Larger Than Screen Resolution

May 21, 2011

I'm making an application in vb.net and during the development has arisen the need to make a form greater than the screen resolution.For example:

Screen resolution: 1280x800 and 2560x1600 sizes form
Obviously, the form should
not have scrollbars.

View 2 Replies

Re-size All Control Within Form To Fit Different Screen Resolution?

Jul 21, 2010

How to re-size all control within form to fit different screen resolution?

any solution on this? my control always run out of the screen size... can it re-size every control before the user can see the form load..?

View 4 Replies

Scaling Form Controls According To Screen Resolution

Dec 2, 2011

I am trying to write program in vb 2010 that is independent of screen resolution. I am designing the program in 1920*1080 and when I change the resolution to e.g. 800*600 everything blows up and the program won't fit the screen. I have tried three different approaches:

loop through all controls and scale their position and dimensions
Friend Sub ResizeControl(ByRef ctl As Control)
'---------------------------- GET SCALES -------------------------
Dim DesignScreenWidth As Integer = 1920
Dim DesignScreenHeight As Integer = 1080
[Code] .....

None of these methods has worked for me. One thing I figured out was that my main form is larger than 800*600 pixels so when I run the designer in 800*600 resolution VS cut down the with to 812px so my calculations of with and thus scaling ratio becomes wrong. This error goes applies for all three methods.

View 1 Replies

Make An Application Look As Though It Has Been Set To A Screen Resolution Of 1024 X 768 When The True Resolution Different?

Oct 2, 2009

1. Is there anyway to make an application look as though it has been set to a screen resolution of 1024 x 768 when the true resolution different?

2. I am developing my app using a widescreen monitor. What dimensions does the form need to be set to so that it looks exactly the same on a normal & widescreen monitor?

View 1 Replies

Made A Mistake In Design My Form E.G Screen Resolution

Aug 2, 2011

I have designed a complaints form for my work (free of charge just for my cv). I designed the form for the resolution 1280 x 1024. My problem is when a user with a smaller resolution say 800 x 600 uses it. The form will be out of sync with the screen as shown below (tested on my on computer). So I am wondering is there a way to test the screen size of the users computer then readjust the size of my controls according to the size of the screen. By the way all of my controls are anchored so that they stay in the same place.

[Code]...

View 14 Replies

VS 2005 Resize Controls And Form According To Screen Resolution

Sep 1, 2010

i have a win form application in vb.net. it works fine but trouble comes when i change my screen resolutions.

How to resize my controls and form according to my screen resolution...?

how to adjust my controls according to screen size...?

View 1 Replies

VS 2008 : Creating A Form Bigger Than Screen Resolution?

Feb 28, 2010

Is it possible to create a form bigger than my screen resolution ?. My screen is 1680 x 1050 but i need to create a form of 1920 x 1080.

View 6 Replies

Change User Control Resolution According To Screen Resolution?

Dec 29, 2010

In my application,I placed the user control on a panel,I want to resize that control on a panel automatically according to different screen resolution.

View 6 Replies

Set Form To Current Screen Resolution Or Change To 1024/678 Pixiels?

Mar 2, 2010

When ever my program runs how can I set my form to Current Screen resolution or change to 1024/678 pixiels.

View 9 Replies

VS 2008 - Setting Form Sizes According To User Screen Resolution

Mar 17, 2011

I'm setting form sizes according to user screen resolution and I think I need design no smaller than 1024 x 768 these days. Using the following code I set my first form and use Anchor settings to resize and maintain controls. Does resize affect StartupPosition in other forms and what do you think is the best StartupPosition to Show the next (smaller) forms? I have a feeling I should have created child forms but simply added forms to the project as I needed them. For example, the first code example does not take account of the WIN7 Task Bar.

HTML
Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height
Me.Size = New Size(x, y)

A smaller form loads with the same code slightly varied, but the reduction is not taking account of the screen resolution. Is there a way of reducing by percentage?

HTML
Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height
X = X -100
y = y - 100
Me.Size = New Size(x, y)

View 12 Replies

Resize Font Of All Windows Form Control When Change Screen Resolution?

Jun 10, 2011

I want to resize font of all windows form control when i change screen resolution..I am able to resize all the controls but font resize driving me nuts..

View 7 Replies

Resizing Forms - Form Size Aint Affected By Screen Resolution Settings

Feb 15, 2011

how do i set my vb2008 form in such away that the form size aint affected by screen resolution settings

View 3 Replies

Sizing Image To Fit Screen?

Oct 27, 2010

Having many thousands of pictures, I made a screen saver with the functionality I want. If the LAN path goes away it reconnects later, bad pics can be deleted, rotated and saved, etc. Sometimes the pics don't size correctly and expand off the screen. The problem may be reuse of the same picturebox. What I might do is have a dedicated picture box with autosize left on, use that to obtain raw image size, then reload again into the picture box that will be displayed.

Private Function loadimage(ByVal pic As PictureBox, ByVal lab As Label, ByVal fname$) As Boolean
With pic
.SuspendLayout()

[Code].....

View 12 Replies

VS 2008 Form Screen Resolution While Using Monitor Size Like 21 Inch And 15 Inch?

Jul 16, 2010

I have to know how to set system resolution of all tools in forms, which i using for my application.

I attached two screen shots. When i work my application with my system, form window and their tools placed correctly with my monitor fit(15 inch monitor).

But when i work my application in 21 inch monitor, all tools re arranged and

not in format. post me the code to set resolution as per system??

View 2 Replies

Resolution-based Resizing?

Jun 7, 2010

Usually I am a web developer so this is probably a very novice question. I recently made an app in VB2008, but I developed it in a huge reso (1920x1200). The person that will be using it still uses 800x600 reso. Is there any simple way I can resize the entire interface to fit any resolution? I didn't really think about it at all while I was making the program.

View 1 Replies

Get My Screen Resolution?

Dec 29, 2010

How to get screen resolution?

View 2 Replies

VS 2010 Set Form Size Longer But After Building Project Form Re-sizing

May 1, 2010

I'm trying to set form size longer, but after building the project form resizing.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved