Hi all:

Is there any one who can help me out coping up with VB.net basics??
i am a fresh stater of VB.net if some one there to help their efforts are appreciated.

Thank you
NN

Dani AI

Generated

Practical starter notes for that build on points from , and : focus on short, hands-on projects that force the core concepts to be used (syntax, types, scoping, classes, events, and basic data access), and use the IDE debugger early and often.

  • Start with tiny console apps to learn syntax, data types, control flow and compilation.
  • Move to a simple Windows Forms app to learn the event-driven model, controls and form lifecycle.
  • Practice OOP by extracting logic into small classes and libraries (constructors, properties, methods, inheritance/interfaces).
  • Add data handling: a single-file persistence first, then basic ADO.NET-style CRUD against a local database.
  • Learn the IDE features: breakpoints, step into/out/over, watch/locals, immediate window, and project references.
  • Keep code style consistent: enable Option Explicit and Option Strict, and favor TryParse and Using blocks for resources.

Example snippets (keeps Option Strict On and safe parsing):

Option Strict On

Module Program
    Sub Main()
        Dim input As String = "42"
        Dim n As Integer
        If Integer.TryParse(input, n) Then
            System.Console.WriteLine("Parsed: " & n)
        Else
            System.Console.WriteLine("Invalid number")
        End If
    End Sub
End Module
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
    Dim a As Integer
    Dim b As Integer
    If Integer.TryParse(txtA.Text, a) AndAlso Integer.TryParse(txtB.Text, b) Then
        lblSum.Text = (a + b).ToString()
    Else
        MessageBox.Show("Enter valid integers")
    End If
End Sub

Troubleshooting checklist and cautions: enable Option Strict/Explicit to catch issues early; prefer TryParse over Parse to avoid exceptions; use Using for IDisposable objects (connections, readers); step through code with breakpoints rather than guessing; watch for Nothing (null) references and cross-thread UI updates. Pair the video/reading recommendations already mentioned by and with these small projects and the database practice suggested by for a faster, practical learning path.

Recommended Answers

All 3 Replies

hi NN

VB.Net is not difficult to learn though. If you have learned or programmed VB before (VB6), you should have the foundation already. The major different of VB6 and VB.Net is VB.Net now is part of a larger system named. Visual Studio 2005. Previously VB is an individual applicatin development tool but if has been integrated into Visual Studio 2005. VB.Net is a object oriented programming language. Unlike the previous version, you may struggle a little initially when you pick up vb.net as you need to understand namespaces, objects, classes, overloading, etc. I hope this will not scare you off. As long as you have learned VB before, you should not worry. The base structure of the language such as iteration, decision making syntax ,etc remains the same.

I would suggest you to pick up the following books to kick start your learning process

1. Visual Basic for Dummies (Wiley Publishing)
2. Visual Basic 2005 Step by Step (Microsoft Press)
3. Visual Basic 2005 JumpStart (O'Reilly)

Once you have mastered some basic skills from these books, you may wish to take a look at the WROX series book from Wiley Publishing. These books are OK but not for beginners. You may sometime 'lost' somewhere if you try to use WROX series book to teach you the basic of VB.Net.

Hope this will help. If need some help during the course of learning VB.Net, do drop me an email or message. I will try to help if possible.

cheers

zmind

Hi,

Start with good tutorials or with good books. Try this title:"Database programming using vb.net and sql server", by VK publishers. This books will give you the complete application development in vb.net.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.