Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 7th, 2004, 05:25 AM
Authorized User
 
Join Date: Jul 2004
Location: Bristol, , United Kingdom.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 - Toolbars (tech question)

Hi all,

Not sure whether this question maybe answered later in the book, or in the Professional version which I've also purchased...however..

I have just added a couple of toolbars to a windows form in the exercise in chapter 8 - marvellous - all working as it should...my question though - when you use the menu's that you've added to 'hide' the menus the app still leaves a big grey area for where they would appear if you turn them on. For example - if I was to turn them both off I would have an area about 1 inch thats just grey - and it looks odd.

In MS Word when you add more toolbars doesn't it shuffle the page down a bit? Also - the MS apps have the little 'handle' on the left where you can drag them around a bit - move them onto new lines - are we able to achieve this in VB.Net? It would be handy to have all of the other controls on the page shuffle up if nothing else when a toolbar is 'hidden' - perhaps this isn't the visible = false kinda thing - but is there any other way of achieving it?

Thanks in advance for any help/suggestions.



Regards

Rob
__________________
Regards

Rob
  #2 (permalink)  
Old August 10th, 2004, 04:25 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

The problem you describe can be solved by adding your menus, toolbars, and then your statusbar. Then add a Panel control and set its Dock property to Fill. Next, add all of your other controls to the Panel control and arrange them to your satisfaction. Now when you hide a toolbar, the Panel control will automatically use the extra space that was taken by your toolbar and when you show your toolbar again, the Panel control will use less room.
  #3 (permalink)  
Old August 10th, 2004, 11:40 AM
Authorized User
 
Join Date: Jul 2004
Location: Bristol, , United Kingdom.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Thearon,

Many thanks for the reply and the information - I shall give this ago - probably on the example code I think - save me some time :)

Cheers


Regards

Rob
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report toolbars not showing ching0418 ASP.NET 2.0 Basics 2 July 19th, 2006 10:56 PM
Question for the real tech lords. Warbird General .NET 2 November 10th, 2005 09:51 PM
creating toolbars ozPATT Excel VBA 1 October 23rd, 2005 02:52 AM
Page Without Toolbars hugh@kmcnetwork.com ASP.NET 1.0 and 1.1 Professional 1 February 9th, 2004 12:18 PM
Toolbars the_it_guru VB How-To 1 January 19th, 2004 05:41 PM



All times are GMT -4. The time now is 02:31 PM.


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