Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 22nd, 2012, 06:53 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Location: San Diego
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 13 - try it example

Two questions:

1. how do you move the focus to the calculate button (NewItemForm) after user has entered value in text box "Quantity" and hits the Tab key? On my attempt, you hit Tab and it goes to the next text box which is where your calculated value should be.

2. on my attempt, program runs fine through all the steps up through "btnOK" event handler but then it just dies at "End Sub" line and never goes back to main form so values are not dropped onto the listview. I used debugger to step through the process in the downloaded solution that I got from the Wrox website and it sure looks like the code is the same and the properties on key controls are the same. After working with the original code in debugger for about 20 minutes it started doing the same thing; stopping at the end of btnOK routine.

Shut down, brought up a fresh copy of 13 TryIt and it worked fine. Is VB this sensitive?
Reply With Quote
  #2 (permalink)  
Old July 23rd, 2012, 05:11 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,187, Level: 23
Points: 3,187, Level: 23 Points: 3,187, Level: 23 Points: 3,187, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 646
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
1. how do you move the focus to the calculate button (NewItemForm) after user has entered value in text box "Quantity" and hits the Tab key? On my attempt, you hit Tab and it goes to the next text box which is where your calculated value should be.
Probably you just need to set the tab order. Open the form in the form designer. Then select the View menu's Tab Order command. It should show numbers indicating the controls' tab order.

Click on the controls in the order in which you want the tab key to move through them. When you're done, press Esc.

If you don't use accelerators on labels (like the underlined F in File in many applications), then the labels won't affect the tab order so you don't need to click on them if you don't want to.

Quote:
Shut down, brought up a fresh copy of 13 TryIt and it worked fine. Is VB this sensitive?
I'm not sure what that's all about. If you email me the project I'll take a look and see if it's anything I can find. Normally all of the VB versions I use are pretty stable.

This may depend on the version you're running. If you're running one of the pre-release versions such as the current early preview of VB 2012, there are sometimes issues like this where a program may hang unexpectedly. Normally, however, the released products are pretty good. Be sure to keep current with the service packs.

Occasionally something happens that makes VB a bit unstable. If that happens, restart and it should clear up.

Sorry I can't give you a more definitive answer.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote
Reply


Thread Tools
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
Exercise 13.1 returnofx BOOK: Ivor Horton's Beginning Visual C++ 2010 0 February 18th, 2012 11:20 AM
Chapter 13 thepianoguy BOOK: Professional iPhone and iPad Application Development 3 April 6th, 2011 09:42 AM
Chapter 13 rock1233 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 October 6th, 2009 12:18 PM
Chapter 13 bwoll BOOK: Beginning Access 2003 VBA 1 June 7th, 2007 03:57 PM
Chapter 13 ElMorenito BOOK: Beginning ASP 3.0 0 January 14th, 2005 01:56 PM



All times are GMT -4. The time now is 10:44 AM.


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