1. Home
  2. Computing & Technology
  3. Visual Basic

By , About.com Guide

Chapter 5 - VB.NET Language and Syntax - Part 2

Tutorial

Trying Out Changes in the Book's Code

Here's some final code that uses MsgBox again to spell things out completely. Substitute this code into the sample in the book! And be sure to try clicking the different buttons to see the difference in the result returned from a MsgBox.

~~~~~~~~~~~~~~~~~~~~~~~~~
Dim MsgResult As MsgBoxResult
MsgResult = MsgBox(FullName, , "Input Results")
Dim MsgResultStyle As MsgBoxStyle
MsgResultStyle = MsgBoxStyle.YesNoCancel + MsgBoxStyle.Information
MsgBox(CStr(MsgResult), MsgResultStyle, "Returned From MsgBox")
MsgBox(CStr(MsgResultStyle), , "Result Style Value")
~~~~~~~~~~~~~~~~~~~~~~~~~

  1. How to use InputBox and MsgBox as the first examples of function statements
  2. "Magic" Numbers in the Code
  3. Trying Out Changes in the Book's Code
  4. Windows Form Designer Generated Code
  5. More on Numbers and VB.NET
  6. Math and Programming
  7. Examples of the Math Operators
  8. What Should Have Been Included in the Book
  9. Qualifying With System.Math
  10. The Bottom Line!

<< Previous | Next >>

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic

©2009 About.com, a part of The New York Times Company.

All rights reserved.