Visual Basic - Events
What an event is
The ‘look’ of a Visual Basic application is determined by what controls are used, but the ‘feel’ is determined by ..more
VB - Check box and Option Boxes
CheckBoxes
Option bars are used quite often in the windows environment as they can only have two outputs 0 and 1 these get used to process the form. In thi..more
VB - List boxes and Combo Boxes
List boxes
Note :
List boxes and combo boxes are used to supply a list of options to the user. The toolbox icons representing t..more
VB - Control Arrays
Control Arrays
A control array is a list of controls with the same name. Therefore, instead of using five command buttons with separate five names, you..more
VisualBasic - (Part.1)How write program for expression evalu
Public Function execute() As String
Dim i1 As Integer, j1 As Integer
Dim h1 As Integer, r As String
Dim d As String
exp1(k + 1) = "$"
i1 = 0
Do
push (exp1(i1))
If stacks(top1) = ")" Then
j1 = -1
Do
d = pop()
j1 = j1 + 1
..more
VisualBasic - (Part.2)How write program for expression eval
Public Sub clear1()
If b1 = 1 Then
Form1.Text1.Text = ""
exp1(0) = "("
b1 = 0
k = 0
top1 = -1
b = True
End If
End Sub
Public Sub display(txt As String)
x1 = 0
temp = Form1.Text1.Text
If flag1 = True Then
store = temp & " " & txt
flag1 ..more
VisualBasic - (Part.3)How write program for expression eval
Public Function fact(x1 As Double) As Double
Dim i As Integer, f As Integer, j As Integer
f = 1
For i = 1 To x1
f = f * i
Next i
fact = f
End Function
Public Function evaluvate() As String
Dim l As Integer, i As Integer, j As Integer, C As..more
VisualBasic - (Part.3)How write program for expression eval
Public Function calcul(a1 As Double, b1 As String, c1 As
Double) As Double
Dim z1 As Double, e As Double, pi As Double
e = 2.718281828
pi = 3.14159265358979
Select Case b1
Case "+"
z1 = a1 + c1
Case "-"
z1 = a1 - c1
Case "*"
z1 = a1 * c1
..more
VisualBasic - Part.4)How write program for expression evaluv
Public Function arrange() As Integer
Dim q As Integer, q1 As Integer
Dim arry(100) As String
q = 0
q1 = 0
Do
Select Case exp1(q)
Case "0" To "9", "."
arry(q1) = arry(q1) & exp1(q)
Select Case exp1(q + 1)
Case "0" To "9", "...more
VisualBasic - Global dec(Part.5)How write program for expres
Public flagstore As Boolean
Public stacks(100) As String, top1 As Integer
Public sign, temp As String, store, store1, d, z, e,
exp11(10) As String
Public num(50) As String, stack(50) As String, exp1(100)
As String
Public i As Integer, length, l..more
Visual Basic Hello World Tutorials
Public Class FrmASimpleProgram
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeCompon..more
VB operation of Logical operators
/*
A Simple VB program shows the opearation of Logical operators
*/
Private Sub FrmLogicalOperator_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
lblAndAlso.Text = "AndAlso" & vbCrL..more
A simple Visual Basic programs Demonstrates Dice
/* A simple VB programs Demonstrates Dice */
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do ..more
A class for API Created Dynamic Menus- VisualBasic
// A simple usage of the class module could be : (on a list box)
private Sub List1_MouseUp(Button as Integer, Shift as Integer, _
x as Single, y as Single)
Dim oMenu as cPopupMenu
Dim lMenuChosen as Long
'
If Button = vbRight..more
VisualBasic - Basic drawing program
asic drawing program
This tutorial shows you how to make a simple
drawing program and this way it also teaches you
things like error handling.
Visual Basic is well known for making simple
progr..
VisualBasic - Advanced power calculator
This program is developed in Visual Basic 6.0. It
is nothing but scientfic calculator. Here i
designed a library for calculation. use this
program for only studying purpose...