1 / 18

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

المحاضرة الثالثة. مكونات البيزك المرئي Visual Basic Components Cont. By Hitham M. Abo Bakr. In the Previous Lecture . VB 6 Controls. Form Label Textbox Radio button check box listboxes Timers Scrollbar. Forms. Form events Load resize. Close, Max/Restore, Minimize. Caption.

nida
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 Cont. By Hitham M. Abo Bakr

  2. In the Previous Lecture

  3. VB 6 Controls • Form • Label • Textbox • Radio button • check box • listboxes • Timers • Scrollbar

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

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

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

  7. Checkboxes

  8. Radio buttons

  9. In This Lecture listboxes Timers Scrollbar

  10. Listbox • We will take about: • Style • AddList at • Design time • Run Time • Retrieve selected items

  11. ListBox properties List Multiselect Listcount Listindex Selected Clear Removeitem

  12. ComboBox

  13. ComboBox properties List Listcount Listindex

  14. ScrollBar Controls

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

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

  17. 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

  18. Thanks

More Related