1 / 23

المحاضرة الثانية

المحاضرة الثانية. مكونات البيزك المرئي Visual Basic Components By Hitham M. Abo Bakr. Course Website. http://www.hmabobakr.name.eg/userdownloads/VB/VB_Programming.html Or http://www.hmabobakr.name.eg Then select Student area and then select computer and VB Language Course.

zofia
Download Presentation

المحاضرة الثانية

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. المحاضرة الثانية مكونات البيزك المرئي Visual Basic Components By Hitham M. Abo Bakr

  2. Course Website http://www.hmabobakr.name.eg/userdownloads/VB/VB_Programming.html Or http://www.hmabobakr.name.eg Then select Student area and then select computer and VB Language Course

  3. To access the WebSite http://www.hmabobakr.name.eg

  4. In the Previous Lecture

  5. Microsoft Visual Basic 6.0

  6. Tool Box مربع الأدوات

  7. Properties Form

  8. Project Form

  9. Writing First application Example

  10. VB 6 Controls • Form • Label • Textbox • Scrollbar • Radio button • check box • listboxes • timers

  11. Forms • Form events • Load • resize Close, Max/Restore, Minimize Caption • Form properties • Top • Height • Left • Width • Name • Enabled • Visible • Load form • What is twip?

  12. Naming Objects

  13. Methods and Events Every Control has its properties variables that change its Appearance, beside that, there is some methods that can change its appearance and do some features to this control Ex.: Form.printform, drag , Move, Set focus,….

  14. Label • Label Properties • Autosize • Wordwrap • Alignment • Appearance • Font • BackColor and foreColor • Caption

  15. TextBox • Text adding in the Run Time / design time • Multiline • Scrollbars • Events • Change text

  16. Controls – tidying up layout

  17. Checkboxes

  18. Radio buttons

  19. Listbox • We will take about: • Style • AddList at • Design time • RunTime • Retrieve selected items

  20. Timer control • Hidden control • Interval • Tick event • Enabled or not

  21. Timer example – a clock Private Sub Timer1_Timer() Dim currentTime As Date currentTime = Now() Label1.Caption = currentTime End Sub

  22. Timer exercise • Program an animated ball which moves across a window • Have a 'Shape' control and a timer • Each tick event of the timer moves the shape: shape1.left = shape1.left + speed • Make it bounce

  23. Thanks

More Related