Label1.Caption= " I Like Gambus " End ----------------------------------------------------------------- Compute Value of 1500+1000-450*10+300/5
public Sub Button1_Click()
Dim res As Float res=1500+1000-450*10+300/5 Label2.Caption= " "&res End ----------------------------------------------------------------- Using Value of x and y from user.Calculate (X*X*Y)
public Sub Button1_Click()
Dim x,y,res As Float x=Val(TextBox1.text) y=Val(TextBox2.text) res=(x^2 *y) Label3.Caption="x^2y="&res End ------------------------------------------------------------------ Form Background /color Change
Public Sub Form Open()
FMain.Background = Color.Cyan End ----------------------------------------------------------------- When click on command my name appears
public Sub Button1_click()
Label1.Caption= "Name: Saikat " End ----------------------------------------------------------------- Display name and department in two textboxes
public Sub Button1_Click()
Textbox1.text="Saikat" Textbox2.text="CSE" End public Sub Button2_Click() Textbox1.Clear Textbox2.Clear End public Sub Button3_Click() Form3.Close() End ----------------------------------------------------------------- Copy text from one textbox to another
public Sub Button1_Click()
TextBox2.text=TextBox1.text TextBox2.Font=Font["28"] End -----------------------------------------------------------------