Halloween party ideas 2015

Some Features of Visual Basic

  • Full set of objects - you 'draw' the application
  •  Lots of icons and pictures for your use
  • Response to mouse and keyboard actions
  •  Clipboard and printer access
  •  Full array of mathematical, string handling, and graphics functions
  • Can handle fixed and dynamic variable and control arrays
  •  Sequential and random access file support
  • Useful debugger and error-handling facilities
  •  Powerful database access tools
  • ActiveX support
  • Package & Deployment Wizard makes distributing your applications

What is Visual Basic?

Visual Basic is a tool that allows you to develop Windows (GUI - Graphic User
Interface) applications. The applications have a familiar appearance to the
user.


Visual Basic is event-driven, meaning code remains idle until called upon to
respond to some event (button pressing, menu selection, ...). Visual Basic is
governed by an event processor. Nothing happens until an event is detected.
Once an event is detected, the code corresponding to that event (event
procedure) is executed. Program control is then returned to the event processor.

WHAT IS PHP

PHP stands for Hypertext Preprocesor. PHP is a server side scripting language that is embedded in HTML.

USES OF PHP
  • PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
  • You add, delete, modify elements within your database thru PHP.
  • Access cookies variables and set cookies.
  • Using PHP, you can restrict users to access some pages of your website.
  • It can encrypt data.

 OPTION BOX 

you can only make one selection with option box eg gender it will be either male or female.
follow the following code to learn how to use option box


  1. Select optionbox from the toolbox and draw it.
  2. Give your two option box box the same name.
  3. The compiler will ask to create an array, just click on  yes i will explain on array later on this blog.
  4. Double-click on the one of the option box.
  5. Type in this code. option1.(index). Caption
Where option is the name of your option box; in id the location of the array.

BELOW IS THE INTERFACE:



BELOW IS THE CODE FOR THE STOPWATCH:

Dim elapsed As Variant
Dim startTime As Variant
Dim today As Variant


Private Sub cmdend_Click()
Timer1.Enabled = False
today = Now
txtend.Text = Format(today, "hh:mm:ss")
elapsed = today - startTime
txtelapse.Text = Format(elapsed, "hh:mm:ss")

End Sub

Private Sub cmdstart_Click()
startTime = Now
txtstart.Text = Format(startTime, "hh:mm:ss")
Timer1.Enabled = True
End Sub

Private Sub Exit_Click()
End
End Sub


Private Sub Timer1_Timer()
today = Now
txtstart.Text = Format(today, "h:mm:ss")
End Sub
Powered by Blogger.