473,461 Members | 1,371 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MDI form scrolling and size issues

When I set the Size property on the VB.NET form properties pane to a
size of 800, 1200 the 1200 always resets back to 1036? Why is that?

When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those scroll
bars on when the child form is maximized?
Nov 19 '05 #1
5 11912
"Tim Frawley" <ti*********@fishgame.state.ak.us> schrieb
When I set the Size property on the VB.NET form properties pane to
a size of 800, 1200 the 1200 always resets back to 1036? Why is
that?
The client rectangle of a window mustn't be bigger than the screen.
When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those
scroll bars on when the child form is maximized?


Why? If it is maximized, the whole child is visible. There's nothing to
scroll.
--
Armin

Nov 19 '05 #2
Hello,

"Tim Frawley" <ti*********@fishgame.state.ak.us> schrieb:
When I set the Size property on the VB.NET form properties
pane to a size of 800, 1200 the 1200 always resets back
to 1036? Why is that?
Forms cannot be bigger than the screen,
When I open a child form in the MDI parent the only
way the MDI displays scroll bars if if the child form is
not maximized and is moved over the edge of the MDI.
Is there a way to turn those scroll bars on when the
child form is maximized?


For me, this seems to be a bug. I don't know a way to turn the scrollbars
on.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 19 '05 #3
Hello,

"Armin Zingler" <az*******@freenet.de> schrieb:
When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those
scroll bars on when the child form is maximized?


Why? If it is maximized, the whole child is visible. There's nothing to
scroll.


If the MDI container is not maximized and the child is maximized, parts of
the child may not be visible (some of the controls). No scrollbars are
shown.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 19 '05 #4
"Herfried K. Wagner" <aon.912666908.N.O.S.P.@.M.aon.at> schrieb
Hello,

"Armin Zingler" <az*******@freenet.de> schrieb:
When I open a child form in the MDI parent the only way the
MDI displays scroll bars if if the child form is not maximized
and is moved over the edge of the MDI. Is there a way to turn
those scroll bars on when the child form is maximized?


Why? If it is maximized, the whole child is visible. There's
nothing to scroll.


If the MDI container is not maximized and the child is maximized,
parts of the child may not be visible (some of the controls). No
scrollbars are shown.


??

These are the scrollbars for the MDI child because some controls are not
visible, but IMO he was talking about the scrollbars of the MDI parent. The
latter is only shown whenever parts of the child are not visible. That's not
the case when it is maximized.
--
Armin

Nov 19 '05 #5
"Tim Frawley" <ti*********@fishgame.state.ak.us> wrote in message
news:bf*************************@posting.google.co m...
When I set the Size property on the VB.NET form properties pane to a
size of 800, 1200 the 1200 always resets back to 1036? Why is that?

When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those scroll
bars on when the child form is maximized?


There is probably a Style bit you can set to accomplish this. But understand
this: even if the scroll bars are visible, there will be nothing to scroll.
If you are trying to scroll the child form, why don't you turn on the
scrollable propertys (AllowScroll, AutoScroll, AutoScrollMargin etc...) of
the child?

The MDI parent cares nothing about the child's controls, it only cares about
the child window- that is, if the child controls are hidden, the MDI parent
wont scroll the contents of the child.

HTH,
Jeremy

Nov 19 '05 #6

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

Similar topics

0
by: Merlin_1102 | last post by:
I have read previous posts on the gridbaglayout and none seem to answer my questions (sorry if any of these have been aske dI really did search and found one large thread which took me an hour to...
1
by: Mike D. | last post by:
I have just installed VS.NET 2003 and the first thing I get is a problem. I started a new C# WinForms project and the form I get has a fixed designer surface that I have not been able to increase....
1
by: Shabeer | last post by:
Hi, Is there any method to prevent the auto scrolling of MDI container form? Autoscroll is not working. Regards Shabeer
1
by: Coy Howe | last post by:
I have subforms that we enter information into and are linked to the main form by a customer ID #. I have noticed you can use a mouse roller and scroll onto a blank subform. If any information is...
2
by: Bernie Yaeger | last post by:
I have a child form that has autoscroll set to true. However, when the mdi parent is maximized and the child form is maximized, no scroll bars appear, even though there is more controls and data...
1
by: Saso Zagoranski | last post by:
Hi, I've developed a Winforms application for a few people. It's a very basic Form with a few textboxes, comboboxes, buttons, labels and one PictureView. With 1024x768 screen resolution the...
0
by: atif | last post by:
Hi, As i have already post the question.. if any one can tell me how to handle the scrolling of form manually. because when i use its autoscroll property to true then scrolling of form is too...
3
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed...
2
by: anandansv | last post by:
I wrote a form in ASP.net 2.0 when ever i create a popup window the all the controls font size in the form is move to the next size please help me anand
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
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...

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.