1 / 22

Enterprise Development with Visual Basic 6.0

Learn how to design and implement enterprise applications using Visual Basic 6.0 and Microsoft's technologies such as ActiveX, COM, and ADO. Improve your programming skills and master VB with database applications.

jmercado
Download Presentation

Enterprise Development with Visual Basic 6.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Enterprise Development Using Visual Basic 6.0 Autumn 2002Tirgul #1 ‘Tirgul’ # 1

  2. Session Outline • Course overview • Communication • Exercises • Final exam • Grading policy • Exercise # 1 ‘Tirgul’ # 1

  3. Course Objective • Designing and implementing enterprise applications • Teaching visual basic programming language • Improving programming skill • Applying Microsoft’s Technologies (ActiveX, COM, ADO) • Mastering VB with Data Base application ‘Tirgul’ # 1

  4. Communication • Web Site, exercises will be published once a week before the submitting day, in the ‘Exercises’ section. • ‘Grades’ section (just type in your ID number) • Newsgroup - Most efficient way to communicate • E-mail – only for private requests, otherwise use newsgroups! • Please use IDCED at the subject line. • Myself - Boaz Inbal – binbal@idc.ac.il ‘Tirgul’ # 1

  5. Web sources • Code reusability.. • www.vbCode.com • www.codeguru.com • Help onLine • www.msdn.microsoft.com • Better to install ‘Tirgul’ # 1

  6. Exercises … • Weekly assignments are meant to keep you up to date with the course material. • All exercises will be handled alone unless specified other. • Restricted rules for single work!!! • Submission must be on time. Late submissions will not be checked. ‘Tirgul’ # 1

  7. What Is VB? • VB is a windows application • Allows one to develop a consistent interface (GUI) • keeps the look and feel of Windows • familiarity means less user issues • Easy windows development • From simple to complex applications (e.g. IVR..) ‘Tirgul’ # 1

  8. What Is VB? • VB Hierachy: • A project contains: • Form(s) which contain • Controls, which have • Properties (Attributes) • Events • Develop in 3 steps • Create GUI • Set properties • Code Events ‘Tirgul’ # 1

  9. Hierarchy Of VB? Project Objects (Forms) Controls Events Properties ‘Tirgul’ # 1

  10. Starting VB ‘Tirgul’ # 1

  11. The VB Environment Project Window shows which form makes up your project The Properties Window is used to establish initial property values for controls ‘Tirgul’ # 1

  12. New Program ‘Tirgul’ # 1

  13. Building an Application • Add controls • toolbox - types of controls (button vs. timer) • Remove controls • Move controls • Size Controls • Mouse • Properties ‘Tirgul’ # 1

  14. Controls Controls or Objects provide an interface between you (or the user of your program) and the computer. You use the controls to tell the computer certain things ‘Tirgul’ # 1

  15. Using Controls • Lets see.. ‘Tirgul’ # 1

  16. Properties • Define the state of an object • Examples • Name • Caption • Color • Position • Common/dedicated properties ‘Tirgul’ # 1

  17. Properties ‘sign for remarks, Unfortunately, no /*…*/ • Properties can set at design/run time • Set Properties values at run time: • txtName.font.bold = true ‘set text to bold • txtName.text = “Hello World” ‘set text value of text • Get properties value at run time: • dim sName as string ‘ declaring variable • sName = txtName.text ‘ gets the Text property of a text box ‘Tirgul’ # 1

  18. Writing procedures • Event procedures • Click, • DoubleClick • MouseOver… private sub cmdProcess_Click() ‘Call the sub routine to process the students processStudent End Sub No () - Sub ‘Tirgul’ # 1

  19. Writing procedures(2) • General procedures: Sub – Takes parameters but return nothing Private Sub processStudents() dim bResult as boolean ‘call checkID function to validate an ID bResult = checkID(3) if bReuslt then msgBox “Student has been processed successfully “ End if End Sub Using (3) to get value back ‘Tirgul’ # 1

  20. Writing procedures (3) Function Takes parameters and return a value: Private function checkID(iID as Integer) as boolean ‘if ID is less than 0, it is invalid If iID < 0 then ‘ return false checkID = false Else ‘all other ID’s are valid ‘return True checkID = True End if End Function ‘Tirgul’ # 1

  21. Forms • Modal / Modeless • Modal enforces the use to do something with the form (In case of constraints) • Modeless let you work with multiple forms. • MDIChild • Let you open several ‘child’ forms within a father form (As in word documents) ‘Tirgul’ # 1

  22. Exercise 1 • The moment you’ve all been waiting for… ‘Tirgul’ # 1

More Related