Sivodaya IT Solutions

Leading Software and BPO company.

Our Services:

Software Development

online and offline data entry works

Informative Site Development

Contact: Email: sivodayatech@gmail.com

vb.net

Visual Studio

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop console and graphical user interface applications.

World of MYSQL

MYSQL is the world's most used open source relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. It is named after co-founder Michael Widenius' daughter, My. The SQL phrase stands for Structured Query Language.

VB.NET

Visual Basic .NET (VB.NET), is an object-oriented computer programming language that can be viewed as an evolution of the classic Visual Basic (VB), which is implemented on the .NET Framework.

Sivodaya IT Solutions

Leading Software and BPO company.

Our Services:

Software Development

online and offline data entry works

Informative Site Development

Contact: Email: sivodayatech@gmail.com

Monday, 16 July 2012

Using KeyDown Event in VB.NET

KeyDown event is a useful event, it helps you to detect whether the key on the keyword is held down. It’s mainly used for validating text in the textboxes.

To test, place a textbox into your form and write the below code inside the KeyDown event if TextBox (take the properties if TextBox and select events of TextBox from the properties, from the event list you have the open the KeyDown event).
TextBox Properties
TextBox KeyDown Event


When you select the KeyDown event of TextBox, it shows like this:
Private Sub TextBox1_KeyDown(ByVal sender As System.Object, _
                                 ByVal e As System.Windows.Forms.KeyEventArgs) _
                                 Handles TextBox1.KeyDown

    End Sub

The event is being handled is the KeyDown event of TextBox.
ByVal e As System.Windows.Forms.KeyEventArgs
Here e holds the information about what key is pressed on the keyboard by the user.
To check which key is pressed on the keyboard is using the below code
If e.KeyCode = Keys.F1 Then
            MsgBox("Help")
        End If

The complete for the KeyEvent in TextBox
Public Class Form1
    Private Sub TextBox1_KeyDown(ByVal sender As System.Object, _
                                 ByVal e As System.Windows.Forms.KeyEventArgs) _
                                 Handles TextBox1.KeyDown

        If e.KeyCode = Keys.F1 Then
            MsgBox("Help")
        End If

    End Sub
End Clas

More Related Topics:

Friday, 13 July 2012

Replace string in VB.NET

This topic shows how to replace string using VB.NET, here replacing a particular word from a sentence with the new word that you given.

  Dim str As String = data.Replace("Hello!", "Great")
In above code, “Hello!” is the old string and “Great” is the new string

Complete code to replace string in VB.NET

Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        'assing the data that we want to replace
        Dim data As String = "Hello! welcome to VB.NET"
        Dim str As String = data.Replace("Hello!", "Great")

        'assigning default value to label
        Label1.Text = data
        'assigning replaced string to the label
        Label2.Text = str

    End Sub
End Class

Replace String

Important related Topics:

Important Topics

Basic functions of 3-tier or N-tier Client Server



The presentation services tier is responsible for:
  • Gathering information from the user
  • Sending user information to the business services for processing
  • Receiving results of the business services processing
  • Presenting those results to the user
The business services tier is responsible for:
  • Receiving input from the presentation tier
  • Interacting with the data services to perform the business operations
  • Sending the processed results to the presentation tier.
The data services tier is responsible for:
  • Storage of data
  • Retrieval of data
  • Maintenance of data
  • Integrity of data
In Windows DNA applications commonly implement their business logic using one or more of three implementation options.
  • Asp Pages
  • COM components
  • Stored procedures running in the DBMS

Thursday, 12 July 2012

Three-Tier Client Server

Three-Tier Client Server


In Three-Tiered application, the presentation services are responsible for gathering information from the user, sending the user information to the business services for processing, receiving the results of the business services processing, and presenting those results to the user. This is the most popular architecture on the web. Mostly taking the web browser form is in the form of HTML/DHTML. The web server using some scripting language (ASP) and the database server (SQL server for example) serving up the data.





Previous Chapter: 2-tier client server                 Next Chapter: Functions of 3-Tier or N-Tier 

2 Tier: Client Server

two tier client server


Through the appearance of Local-Area-Networks, PCs came out of their isolation, and were soon not only being connected mutually but also to servers. Thus Client/Server computing was born. A two-tiered application means whose functionality can only be segmented into two logical tiers, including presentation services and data services. The presentation services of a two-tiered application are responsible for gathering information from the user, interacting with the data services to perform the applications business operations and presenting the results to the users. Presentation services are also called presentation layer because it presents the information to the user. There presentation layer includes Web browser, a terminal, a custom-designed GUI, or even a character-based user interface. A web browser talking to a web server is an example of a client taking to a server. The 2-tier model is the logical consequence of the RAD-tools’ popularity.





Next Chapter: 3-tier Client Server