Visual Basic
Visual Basic est un langage de programmation dérivé du BASIC créé par Microsoft. Il est apparu pour la première fois en 1991. Il permet de créer des applications rapidement, facilement et avec une interface graphique.
Langages dérivés de Visual Basic
Exemple de codage
- Navigateur (Programmation orienté objet) :
Public Class Navigateur Private Const WM_NCLBUTTONDOWN = &HA1 Private Const HTCAPTION = 2 Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _ Private Sub Barre_mousedown(sender As System.Object, e As System.EventArgs) Handles BARRE.MouseDown Dim lHwnd As Int32
Private Sub txt_copier_Click(sender As System.Object, e As System.EventArgs) Handles txt_copier.Click Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click Private Sub Navigateur_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Private Sub Button6_Click(sender As System.Object, e As System.EventArgs) Handles Button6.Click Private Sub Button10_Click(sender As System.Object, e As System.EventArgs) Handles Button10.Click Private Sub Button7_Click(sender As System.Object, e As System.EventArgs) Handles Button7.Click Private Sub Button8_Click(sender As System.Object, e As System.EventArgs) Handles Button8.Click Private Sub Button9_Click(sender As System.Object, e As System.EventArgs) Handles Button9.Click Private Sub Navigateur_FormClosed(sender As System.Object, e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed End Sub Private Sub Button11_Click(sender As System.Object, e As System.EventArgs) Handles Button11.Click |
- Calculatrice (sans interface graphique) :
Module Module1 Sub Main() End Module |