Visual Basic .NET Tutorial

  • Submitted by: 
    One of the problems that a beginner encounter when there is a project uploaded here, is they do not know on how to change the connection string that points to the correct database location. This is true with MS Access and even with SQL Server. Some programmers don’t add a code that will automatically change the location of the database just in case it will be ported in other machine. Here’s an...
  • Submitted by: 
    In this tutorial I will teach you on how to create a Windows Application using Visual Basic .NET 2008. For the sake of this tutorial I will be using Library System as the system model. I came up with this idea in the hope to help beginner who wish to learn Visual Basic .NET the EASY WAY. I know there are a lot of tutorials out there but they focus on different things. Unlike this tutorial I will...
  • Submitted by: 
    On my last tutorial I discuss on “ How to Display Data in Windows Forms ”. This time I will teach you on “How to Create Master/Detail Windows Forms”. Creating a master/detail form still requires the same method as displaying data in windows forms. Except that we use additional control called “DataGridView”. This control will display the related record known as child form. In our database example...
  • Submitted by: 
    In order to display data in windows forms all you need to do is drag Items from the Data Sources. For more information, see How to Add New Data Source . Before you drag the Items (i.e. table name) make sure that you select the display type and type of control that you’d like to appear in the Windows Forms. To do this expand the Item name and the arrow down to select the display type and type of...
  • Submitted by: 
    In our previous tutorial I discuss on “ How to Create Master/Detail Windows Forms ” on our Library System Project. Today we will add MDI Form and create a main menu to open the forms on our project. If you follow closely this tutorial you will have now several Windows Forms on your project. Please follow the steps below to Add MDI Form and Main Menu on your Library System project. Click Project...
  • Submitted by: 
    Now that you have added all the necessary forms to your project and a menu system, let us now add a login form. This will ensure that only the person that has the account information can login to your system. But before we add the Login form you will need to add the table first to your database. Use the following SQL code to create a table named “Users”. For more information on how to do this...
  • Submitted by: 
    There are some cases that you need to change the data type of a field in SQL Server by not using the Management Studio Tools. The reason is if your database is replicated. You cannot change it directly using the management studio tools so your best option is to use T-SQL. In my case I have a column name “TransDate” that has a datetime datatype. Now when I create a report and filter the record...
  • Submitted by: 
    I read a lot of question about this on the forum and thought it’s time to share with you on how to differentiate two cell values in DataGridView control. By default we use the Value property of cells like: QtyOrdered = InvoiceDetails ( "Qty" , e. RowIndex ) . Value Another is to use the FormattedValue like: QtyOrdered = InvoiceDetails ( "Qty " , e. RowIndex...
  • Submitted by: 
    Few months ago I encounter a problem with my windows form bound using a DataSet. When I open the form the first time, it seems that everything is fine. But when I open it again the second time, the fields are become blank. This happens when you trigger the “PerformClick” of “BindingNavigator” under the Form Load event. This is not actually the common mistake that I encounter. But maybe, you...
  • Submitted by: 
    After browsing several forum sites I found so many programmers having problem with ComboBox after they bind it to a DataSet. The problem actually is not cause by a bug or the like. The error is caused by design. Here’s the following question on the internet that I found that will explain this error further: http://thedailyreviewer.com/dotnet/view/data-bound-combobox-does-not-leave-focus-106127786...

Pages