vb.net

How to Pass Value from One Form to another Form

I think it’s time again to teach you on the features that can be found on my program like Hotel Reservation System (VB.NET).

A while ago I received a comment on how to pass value from one form to another form. Although I have already done this in almost all of my program but I know that some of you miss the opportunity to analyze it due to the complexity of the program.

Syntax error in UPDATE statement

While I was working with Visual Basic .NET by adding a form to manage user account in my system I found an error called “Syntax error in UPDATE statement”. After figuring out what’s the cause of this error I found out that it was the name of the field that is causing the problem.

In my Users table I have the following fields:

UserID
Password
CompleteName

As you can see all of these fields are valid. The statement to save a record back to its database is:

How to Bind Data to the Windows Forms DataGridView Control

[inline:DataGridView Control.jpg=How to Bind Data to the Windows Forms Datagridview Control] The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor. (Source: MSDN)

VB.NET Introduction

Language

Some times back the visual basic was the mostly widely used for developing applications. The VB is most popular for its graphical environment. The Visual Basic .Net is the extension of visual basic programming language. The new language provides many new features. If we compare the VB with VB.NET, there are huge changes in all areas. The VB.NET is designed to take advantage of the .NET framework classes. New features (in comparison with VB) 1).