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")
~~~~~~~~~~~~~~~~~~~~~~~~~
- How to use InputBox and MsgBox as the first examples of function statements
- "Magic" Numbers in the Code
- Trying Out Changes in the Book's Code
- Windows Form Designer Generated Code
- More on Numbers and VB.NET
- Math and Programming
- Examples of the Math Operators
- What Should Have Been Included in the Book
- Qualifying With System.Math
- The Bottom Line!

