Wrox Programmer Forums
|
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2007, 08:49 AM
Authorized User
 
Join Date: Dec 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDIForm scroll bars

Is there a way to stop a MDI container form from showing scroll bars? I've tried setting its autoscroll to false but they're still shown.

 
Old January 12th, 2007, 11:00 AM
Authorized User
 
Join Date: Dec 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've got round the problem using Dock - I guess I should have used it in the first place! VB.net certainly makes life a whole lot easier than VB6.

 
Old January 13th, 2007, 11:55 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Dock sounds like a reasonable workaround.

Unfortunately I don't know of an easy way to turn off the MDI scrollbars. They are not the same kind of control as normal scrollbars and VB doesn't give you a handle to them.

You might be able to pull the MDI child form's client area into another control used as an MDI parent. For example, the following links lead to examples that build tabbed MDI parents instead of parents that use scrollbars.

http://www.vbaccelerator.com/home/VB...bs/article.asp
http://www.codeproject.com/vb/net/MDITabControl.asp

None of these are easy, though.

Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html
 
Old June 4th, 2007, 06:52 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by PhilS
 I've got round the problem using Dock - I guess I should have used it in the first place! VB.net certainly makes life a whole lot easier than VB6.

Can you explain more about Dock, as MDI does not have Dock property.
I want to hide scroll bars which comes when I moves any child form in MDI form outside of the MDI boundary. Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use scroll bars into EVC++ iriskab Visual C++ 0 October 15th, 2006 07:12 PM
Scroll bars in table cell jaffacake HTML Code Clinic 2 November 17th, 2005 03:08 PM
scroll bars LH Access 2 October 10th, 2003 09:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.