Visual Basic.NET
  Home arrow Visual Basic.NET arrow Using Visual Basic.NET Features to Code a ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Using Visual Basic.NET Features to Code a Windows Forms Application
By: Murach Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-07-14

    Table of Contents:
  • Using Visual Basic.NET Features to Code a Windows Forms Application
  • How to use the My feature
  • How to get help information
  • How to run, test, and debug a project

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Visual Basic.NET Features to Code a Windows Forms Application


    (Page 1 of 4 )

    Welcome to the fourth part of a five-part series that shows you how to code and test a Windows Forms application. In this part you'll learn how to use the smart compile auto correction feature, the My feature, and more. This article is excerpted from chapter three of Murach's Visual Basic 2008, written by Anne Boehm (Murach, 2008; ISBN: 1890774456).

    How to use the Smart Compile Auto Correction feature

    As you learned in figure 3-9, Visual Studio puts a wavy line under any syntax errors that it detects while you’re entering code. In some cases, though, Visual Studio takes that one step further with its Smart Compile Auto Correction feature. In those cases, a bar appears at the right end of the wavy underline.

    To use this feature, you place the mouse pointer over this bar to display a smart tag. Then, you can click the drop-down arrow that appears to display the Error Correction Options window shown in figure 3-13. This window includes a description of the error, suggestions for correcting the error, and a preview of how the code will look if you apply the corrections. If you like the suggested corrections, you just click on the suggestion to apply them.

    For this example, I set the Option Strict option on, which you’ll learn how to do in the next chapter. Because that forces you to do some data conversion before comparisons or arithmetic calculations can be done, the suggested changes do those data conversions. This illustrates the power of this feature, so you’re going to want to use it whenever it’s available.

    The Code Editor with the Error Correction Options window displayed

    Description

    1. When Visual Studio detects a syntax error, it highlights the error with a wavy underline in the Code Editor.
    2. If a bar appears at the right end of a wavy underline, you can use the Error Correction Options window to view and apply suggested corrections. 
       
    3. To display the Error Correction Options window, place the mouse pointer over the bar, then over the smart tag that’s displayed, and click the drop-down arrow. 
       
    4. To apply a correction, click the appropriate “Replace…” link.

    Note

    • To get the errors and the suggested corrections in the screen above, I turned the Option Strict option on. You’ll learn more about that in the next chapter.


    Figure 3-13.   How to use the Smart Compile Auto Correction feature

    More Visual Basic.NET Articles
    More By Murach Publishing


       · 
     

    Buy this book now. This article is excerpted from chapter three of Murach's Visual Basic 2008, written by Anne Boehm (Murach, 2008; ISBN: 1890774456). Check it out today at your favorite bookstore. Buy this book now.

    VISUAL BASIC.NET ARTICLES

    - User-defined Functions using Visual Basic Ap...
    - Understanding Object Binding in VBA
    - Mastering the Message Box
    - Testing a Windows Forms Application
    - Using Visual Basic.NET Features to Code a Wi...
    - Correcting Code in a Windows Forms Applicati...
    - Write Readable Code and Comments for Windows...
    - How to Code and Test a Windows Forms Applica...
    - Adding Features to a Windows Forms Applicati...
    - How to Design a Windows Forms Application
    - LINQ to XML Programming Using Visual Basic.N...
    - Understanding Delegates using Visual Basic.N...
    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek