STEPS IN DEVELOPING APPLICATION IN VISUAL BASIC

THERE ARE THREE STEPS IN DEVELOPING APPLICATION IN VISUAL BASIC




Image result for vb 6.0 tutorial
1.Draw the user interface
2.Assign properties to control
3.Attach codes to control draw user interface & setting properties

>>>design mode; used to build application
>>>Run mode; used to run application
>>>break mode; implicated halted and debugger available
DESIGNING MODE
THERE ARE SIX WINDOWS WHEN YOU START VB
1-THE MAIN WINDOW ➽consist of Title , menu bar , and standard tool bar

2-FORM WINDOW ➽ place where you draw the application

3-THE TOOL BOX ➽ Is the selection menu for control used in your application

4-PROPERTIES WINDOW ➽Used to establish initial property values for project

5-FORM LAYOUT WINDOW ➽ will display cd relative to your monitor screen (upon program excuted)

6-PROJECT WINDOW ➽display a list of all forms and module making up your application for can obtain a view of form or code
example
    form                          label                                button
command 1                 label 1                            label 4
command 2                label  2                            label 5
command 3                label  3                             label 6
⤘start new project idea is to start a timer, then stop timer. Place three button/command and six labelon the form , then you need to assign properties for each form and properties  assigned for it by defalt when you start up new project  of an object 
⤘Check on object in the form window then properties window
  • click on properties window,then select object form to the object box in properties window
  • properties can be changed by  typing new value or choosing from list of pre_defined  setting properties can be viewed by alphabetical and categorized
  • A very important properties iis name of object
😃 A convention has been estaablished for naming bisul basic object.✅
 exampe2
Exercise 1 Calendar/Time Display Design a window that displays the current month, day, and year.
 Also, display the current time, updating it every second (look into the Timer control).
 Make the window look something like a calendar page. 
Play with object properties to make it pretty. 
My Solution: 
Form: Properties: Form frmCalendar: Caption = My Calendar 
BorderStyle = 1 - Fixed Single Timer timDisplay: Interval = 1000
 Label lblDay: Caption = Sunday FontName = Times New Roman FontBold = True
 FontSize = 24 lblDay lblTime timDisplay lblMonth lblNumber lblYear 
Label lblTime: Caption = 00:00:00 PM
 FontName = Times New Roman FontBold = True FontSize = 24 
Label lblYear: Alignment = 2 - Center Caption = 1998 
FontName = Times New Roman FontBold = True
 FontSize = 24 Label lblNumber: Alignment = 2 - Center Caption = 31 FontName = Arial FontBold = True FontSize = 72 Label lblMonth: Alignment = 2 - Center Caption = March 
FontName = Times New Roman FontBold = True FontSize = 24
 Code: General Declarations: Option Explicit timDisplay Timer Event: Private Sub timDisplay_Timer() Dim Today As Variant Today = Now lblDay.Caption = Format(Today, "dddd") lblMonth.Caption = Format(Today, "mmmm") lblYear.Caption = Format(Today, "yyyy") lblnumber.Caption = Format(Today, "d") lblTime.Caption =Format(Today, "h:mm:ss ampm" end sub
*************************

DONT MISS NEXT POST
share & comment  thiz post for more educational status
Share on Google Plus

About mboo safi nene na ndefu

0 comments:

Post a Comment