Tag: Windows Forms validation

2 articles found.

Sending Email in Microsoft Visual Studio 2010

Visual Basic email application, editable recipient and subject, Windows Forms message editor, SMTP sending tutorial

Hello friends! In this second part of our Visual Basic email tutorial, we will turn the simple sender into a usable Windows Forms application. You will enter the recipient, subject and message on the form instead of changing those values inside the source code. If you have not completed How to Send Email in Microsoft Visual Studio 2010 , start there. That lesson explains SMTP settings, permitted sender accounts, STARTTLS and the limitations of the legacy System.Net.Mail API. Here we will concentrate on the form, input validation and the send operation. We will retain the original controls and the step-by-step teaching flow, then improve the application so that a slow mail server does not freeze its interface. The sender account remains configured separately; allowing someone to type a dest ...

Button Control in VB Database

orange database cylinder, hand-drawn storage icon, database label, white background

Hello friends! In this tutorial, we will add Add, Save, Remove and navigation buttons to a Visual Basic database application. We will continue with the contact form from our previous lesson and use its existing dataset, binding source and TableAdapter. If you have not built that form yet, first follow creating a database in Microsoft Visual Studio . This lesson retains the original Visual Studio 2010 Windows Forms example, with clearer event handlers and explanations of what each button changes. The key distinction is that editing a bound form changes in-memory data first. Adding a row, removing a row and moving to another contact do not necessarily write anything to SQL Server. Our Save button is responsible for sending the pending changes to the database. Figure: A database illustration ...