making forms larger than screen size

  • Thread starter Zaher Zeidan via .NET 247
  • Start date
Z

Zaher Zeidan via .NET 247

(Type your message here)

--------------------------------
From: Zaher Zeidan

is there a way to resize a form so that it's bigger than the screen size of the windows??
I mean if you run your windows with 780x1024 resolution you won't be able to set your height or width to any thing larger than this..
this is really stupid from the IDE to prevent developers from resizing the form larger than the screen area since this would enable you to get a lot of space in design time and/or using scroll bars to put lot of controls in one window..

Old Visual Studio didn't have this limitation..

anyone knows a workaround for this???
 
R

Rodger Constandse

You can set the size of the form using the Size property in the Properties
window. I just tried it and it allows you to set the size larger than the IDE
window.
 
H

Herfried K. Wagner [MVP]

Rodger Constandse said:
You can set the size of the form using the Size property in the Properties
window. I just tried it and it allows you to set the size larger than the
IDE window.

Forms cannot be larger than the screen. When entering a value greater than
the form's size it will be reset.
 
S

Stoitcho Goutsev \(100\) [C# MVP]

There is no OS limitations.
The size of the form is corrected inside the Form's SetBoundsCore virtual
portected method. I've been told that this problem had been fixed for .NET
2.0.
 
H

Herfried K. Wagner [MVP]

Stoitcho Goutsev (100) said:
There is no OS limitations.
The size of the form is corrected inside the Form's SetBoundsCore virtual
portected method. I've been told that this problem had been fixed for .NET
2.0.

Mhm... But why does this limitation apply to other applications (Notepad,
Internet Explorer, Visual Studio .NET, ...) too? The limitation still
exists in VS 2005 February CTP.
 
C

Chris Dunaway

Do you know if VS2005 will support multiple monitor setups? It would
be cool to put the form designer or code editor on one screen and the
toolbox, server explorer, etc. on the other.
 
A

Ajay Kalra

Hello Chris,
Do you know if VS2005 will support multiple monitor setups? It would
be cool to put the form designer or code editor on one screen and the
toolbox, server explorer, etc. on the other.

If I understand you correctly, I can do this now in VS2003(or VC6 for that
matter). Its not a feature of the application.
 
D

Danny T

Ajay said:
If I understand you correctly, I can do this now in VS2003(or VC6 for
that matter). Its not a feature of the application.

Yep, it works. Shame you can't have code on one screen, and the
forms/controls designers on the other!
 
S

Stoitcho Goutsev \(100\) [C# MVP]

There is no limitation in Notepad or any application. The tracking size is
limited by the OS, which means you cannot drag and resize a window bigger
than whatever
GetSystemMetrics for SM_CXMAXTRACK and SM_CYMAXTRACK returns. The last can
be controlled via processing WM_GETMINMAXINFO message.
Though, programmatically you can set any size you want. The size is limited
only by the datatype that windows API uses - 32 bit integer for WinNT
platforms and 16 bit integer for Win9x if I'm not mistaking.
 
A

Ajay Kalra

Hello Danny,
Yep, it works. Shame you can't have code on one screen, and the
forms/controls designers on the other!

That actually is a very good idea. I never looked into that possibility.
Perhaps its already there.
 
D

Danny T

Ajay said:
That actually is a very good idea. I never looked into that possibility.
Perhaps its already there.

If it is, I can't find a way to do it. So I always have Property &
Solution Explorer on the second screen. It'd be nice to be able to see a
visual representation at the same time as code (how many times do you
Ctrl+Tab back and forth from code to design to check things!)

:-(
 
D

Danny T

Stoitcho said:
Though, programmatically you can set any size you want. The size is limited
only by the datatype that windows API uses - 32 bit integer for WinNT
platforms and 16 bit integer for Win9x if I'm not mistaking.

Hey, it's a good job they've double the size of that integer - imagine
the panic we'd have had when our new monitors support > 32k pixel
resolutions!! ;-D
 

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