- Shopping Bag ( 0 items )
Ships from: Rockford, IL
Usually ships in 1-2 business days
Ships from: Hayward, CA
Usually ships in 1-2 business days
From a programmer's perspective, this definitive and essential Visual Basic 6.0 programmer's guide covers the VB environment and language. It brings you from your first VB application to you applications distribution. This comprehensive guide is written in a tutorial style and divided into two major parts. The first part covers basic techniques, and the second part covers intermediate to advanced techniques. You should have some familiarity with VB programming concepts, the environment and language structures.
Set frm - New Forml
Note You may find it helpful to think of a form as having two parts, a code part and a visual part. Before the
entering the next state:
A form used in this fashion is no better than a class module, so the vast majority of forms pass on to the next state.
Loaded, but Not Shown
The event that marks the beginning of this state is the familiar Load event. Code you place in the Form_Load event procedure is executed as soon as the form enters the loaded state.
When the Form_Load event procedure begins, the controls on the form have all been created and loaded, and the form has a window - complete with window handle (hWnd) and device context (hDC) - although that window has not yet been shown.
Any form that becomes visible must first be loaded.
Many forms pass automatically from the Created, But Not Loaded state into the Loaded, but Not Shown state. A form will be loaded automatically if:
In the first two cases listed above, the form will continue directly on to the visible state, as soon as Form-Load completes. In the last two cases, the form will remain loaded, but not shown.
It has long been common coding practice in Visual Basic to load a form but never show it. This might be done for several reasons:
Note With the Professional or Enterprise edition, you can create ActiveX components (formerly called OLE servers), which are often better at providing code-only functionality than controls are. See "Creating ActiveX Components" in the Microsoft Visual Basic 60 Component Tools Guide volume in the Microsoft Visual Basic 6.0 Reference Guide.
Forms return from the visible state to the loaded state whenever they're hidden. Returning to the loaded state does not re-execute the Load event, however. Form-Load is executed only once in a form's life.
Once a form becomes visible, the user can interact with it. Thereafter, the form may be hidden and shown as many times as you like before finally being unloaded.
Interlude: Preparing to Unload
A form may be either hidden or visible when it's unloaded. If not explicitly hidden, it remains visible until unloaded.
The last event the form gets before unloading is the Unload event. Before this event occurs, however, you get a very important event called QueryUnload. QueryUnload is your chance to stop the form from unloading. If there's data the user might like to save, this is the time to prompt the user to save or discard changes.
One of most powerful features of this event is that it tells you how the impending unload was caused: By the user clicking the Close button; by your program executing the Unload statement; by the application closing; or by Windows closing. Thus QueryUnload allows you to offer the user a chance to cancel closing the form, while still letting you close the form from code when you need to.
For More Information See "QueryUnload Event" in the Microsoft Visual Basic 60 Language Reference volume of the Microsoft Visual Basic 60 Language Reference Library.
Returning to the Created, but Not Loaded State
When the form is unloaded, Visual Basic removes it from the Forms collection. Unless you've kept a variable around with a reference to the form in it, the form will be destroyed, and its memory and resources will be reclaimed by Visual Basic.
If you kept a reference to the form in a variable somewhere, such as the hidden global variable described in "Customizing Form Classes" earlier in this chapter, then the form returns to the Created, But Not Loaded state. The form no longer has a window, and its controls no longer exist. . . .
|Pt. 1||Visual Basic Basics||1|
|Ch. 1||Introducing Visual Basic||3|
|Ch. 2||Developing an Application in Visual Basic||11|
|Ch. 3||Forms, Controls, and Menus||31|
|Ch. 4||Managing Projects||65|
|Ch. 5||Programming Fundamentals||79|
|Pt. 2||What You Can Do with Visual Basic||159|
|Ch. 6||Creating a User Interface||161|
|Ch. 7||Using Visual Basic's Standard Controls||219|
|Ch. 8||More About Programming||359|
|Ch. 9||Programming with Objects||385|
|Ch. 10||Programming with Components||499|
|Ch. 11||Responding to Mouse and Keyboard Events||543|
|Ch. 12||Working with Text and Graphics||595|
|Ch. 13||Debugging Your Code and Handling Errors||667|
|Ch. 14||Processing Drives, Folders, and Files||731|
|Ch. 15||Designing for Performance and Compatibility||751|
|Ch. 16||International Issues||781|
|Ch. 17||Distributing Your Applications||811|
|App. A||Visual Basic Specifications, Limitations, and File Formats||847|
|App. B||Visual Basic Coding Conventions||869|
|App. C||Native Code Compiler Switches||881|
|App. D||Adding Help to Your Application||887|
Posted November 17, 2002
this book covers vast majority of items that vb deals with but not deep enough all talks remain in surface not enough deep and not enugh informative beside it is not well organized book with good classification of matters and subjectsWas this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted April 12, 2002
Posted April 6, 2002
Posted July 23, 2001
I'm new to VB and I bought this book and the Reference Set. It's so complete that much of it is beyond the average, but I recommend it. Sooner or later, you'll understand it and need it! Very detailed. Just what I wanted although I didn't realize what I'd be getting in to. Makes you think - - and that's a good thing. Buy it!Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted April 17, 2001
I have bought about 6 books on Visual basic and I think that this book by far is the best for explanation and simplicity. It explains things well and it is simple. I don't think that this is a good first book but the best for a second book. I would recommend Visual Basic Step by Step for a first. Highly recommend this one.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted June 3, 2001
This book is a guide....not a book designed to teach you...although if you have programming experience you can learn from this, but the reading is diffcult for beginners.This book is a good reference book for your personal knowledge.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted February 28, 2001
Posted April 30, 2000
Posted March 21, 2000
This book offers information for both the beginner and the intermediate programmer. I have not written any programs since my grade school years using my Commodore 64. I thought it would be difficult to begin once again. This book made it very easy, it had everything I needed to know. It is divided into two parts, one for the beginner and the the second for the advanced programmer. All around great book!Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.